Browse Source

fix

photo
winter 1 year ago
parent
commit
7817fc32df
5 changed files with 10 additions and 10 deletions
  1. +1
    -1
      suimangAdmin/src/main/java/com/iformall/config/ShiroConfig.java
  2. +2
    -2
      suimangAdmin/src/main/java/com/iformall/controller/sm/PersonMouldController.java
  3. +2
    -2
      suimangService/src/main/java/com/iformall/domain/po/sm/UserPersonMould.java
  4. +2
    -2
      suimangService/src/main/java/com/iformall/service/sm/impl/PersonMouldServiceImpl.java
  5. +3
    -3
      suimangService/src/main/resources/mapper/UserPersonMouldMapper.xml

+ 1
- 1
suimangAdmin/src/main/java/com/iformall/config/ShiroConfig.java View File

@@ -151,7 +151,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/logout", "authc");

filterChainDefinitionMap.put("/**", "corsFilter,token,authc");
// filterChainDefinitionMap.put("/**", "anon");
filterChainDefinitionMap.put("/**", "anon");


shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap);


+ 2
- 2
suimangAdmin/src/main/java/com/iformall/controller/sm/PersonMouldController.java View File

@@ -161,10 +161,10 @@ public class PersonMouldController extends BaseController {
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"请选择模板");
}
if (null == spm.getCUserId() ) {
if (null == spm.getUserId() ) {
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"请选择用户");
}
personMouldService.associatedUserMoulds(spm.getMouldIds(), spm.getCUserId());
personMouldService.associatedUserMoulds(spm.getMouldIds(), spm.getUserId());
return new ResultData();
}
}

+ 2
- 2
suimangService/src/main/java/com/iformall/domain/po/sm/UserPersonMould.java View File

@@ -21,8 +21,8 @@ public class UserPersonMould extends BaseEntity {

@io.swagger.annotations.ApiModelProperty(value="PersonMould编号",name="personMouldId")
private Long personMouldId;
@io.swagger.annotations.ApiModelProperty(value="WxCuserBasicInfo编码",name="cUserId")
private Long cUserId;
@io.swagger.annotations.ApiModelProperty(value="WxCuserBasicInfo编码",name="userId")
private Long userId;
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate")
private Date createDate;
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")


+ 2
- 2
suimangService/src/main/java/com/iformall/service/sm/impl/PersonMouldServiceImpl.java View File

@@ -57,7 +57,7 @@ public class PersonMouldServiceImpl implements PersonMouldService {
public PageInfo<PersonMould> cListAsPage(PersonMould record, Integer pageIndex, Integer pageSize) {
if (null != record.getCuserId()) {
UserPersonMould upm = new UserPersonMould();
upm.setCUserId(record.getCuserId());
upm.setUserId(record.getCuserId());
List<Long> mouldIds = userPersonMouldMapper.findMouldIdList(upm);
if (null == mouldIds || mouldIds.size() <= 0 ) {
List<Long> pmids = new ArrayList<Long>();
@@ -168,7 +168,7 @@ public class PersonMouldServiceImpl implements PersonMouldService {
for (int i = 0 ; i < mouldIds.size() ; i ++) {
UserPersonMould upm = new UserPersonMould();
upm.setId(IdWorker.get().nextId());
upm.setCUserId(cUserId);
upm.setUserId(cUserId);
upm.setPersonMouldId(mouldIds.get(i));
upm.setCreateDate(new Date());
upm.setUpdateDate(new Date());


+ 3
- 3
suimangService/src/main/resources/mapper/UserPersonMouldMapper.xml View File

@@ -4,7 +4,7 @@
<resultMap id="BaseResultMap" type="com.iformall.domain.po.sm.UserPersonMould">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="person_mould_id" jdbcType="BIGINT" property="personMouldId"/>
<result column="c_user_id" jdbcType="BIGINT" property="cUserId" />
<result column="c_user_id" jdbcType="BIGINT" property="userId" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
</resultMap>
@@ -34,7 +34,7 @@
select person_mould_id
from user_person_mould
<if test=" null != cUserId ">
where c_user_id = #{cUserId}
where c_user_id = #{userId}
</if>
<if test=" null != cuserIds ">
where c_user_id in
@@ -61,7 +61,7 @@
(
#{item.id},
#{item.personMouldId},
#{item.cUserId},
#{item.userId},
#{item.createDate},
#{item.updateDate}
)


Loading…
Cancel
Save