xbw 1 year ago
parent
commit
dbd3717c73
  1. 3
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TBunchingMapper.java
  2. 3
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TSystemConfigurationMapper.java
  3. 3
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TUserForLibraryMapper.java
  4. 4
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TBunchingServiceImpl.java
  5. 13
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TReceiveConfigServiceImpl.java
  6. 2
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TReceiveServiceImpl.java
  7. 2
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TSystemConfigurationServiceImpl.java
  8. 4
      jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java
  9. 4
      jnpf-library/jnpf-library-biz/src/main/resources/mapper/TBunchingMapper.xml
  10. 4
      jnpf-library/jnpf-library-biz/src/main/resources/mapper/TSystemConfiguration.xml
  11. 8
      jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml
  12. 1
      jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TBunching.java
  13. 1
      jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TSystemConfiguration.java
  14. 1
      jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TUserForLibrary.java

3
jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TBunchingMapper.java

@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jnpf.entity.TBunching;
import jnpf.model.dto.TBunchingDto;
import org.apache.ibatis.annotations.Param;
/**
* @author xbw
*/
public interface TBunchingMapper extends BaseMapper<TBunching> {
IPage<TBunching> selectList(IPage<TBunching> page, TBunchingDto.TBunchingDtoParam param);
IPage<TBunching> selectList(IPage<TBunching> page, @Param("param") TBunchingDto.TBunchingDtoParam param);
}

3
jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TSystemConfigurationMapper.java

@ -6,12 +6,13 @@ import jnpf.entity.TSystemConfiguration; @@ -6,12 +6,13 @@ import jnpf.entity.TSystemConfiguration;
import jnpf.entity.TUserForLibrary;
import jnpf.model.dto.TSystemConfigurationDto;
import jnpf.model.dto.TUserForLibraryDto;
import org.apache.ibatis.annotations.Param;
/**
* @author xbw
*/
public interface TSystemConfigurationMapper extends BaseMapper<TSystemConfiguration> {
IPage<TSystemConfiguration> selectList(IPage<TSystemConfiguration> page, TSystemConfigurationDto.TSystemConfigurationDtoParam param);
IPage<TSystemConfiguration> selectList(IPage<TSystemConfiguration> page,@Param("param") TSystemConfigurationDto.TSystemConfigurationDtoParam param);
}

3
jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TUserForLibraryMapper.java

@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jnpf.entity.TUserForLibrary;
import jnpf.model.dto.TUserForLibraryDto;
import org.apache.ibatis.annotations.Param;
/**
* @author xbw
*/
public interface TUserForLibraryMapper extends BaseMapper<TUserForLibrary> {
IPage<TUserForLibrary> selectList(IPage<TUserForLibrary> page, TUserForLibraryDto.TUserForLibraryDtoParam param);
IPage<TUserForLibrary> selectList(IPage<TUserForLibrary> page, @Param("param") TUserForLibraryDto.TUserForLibraryDtoParam param);
}

4
jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TBunchingServiceImpl.java

@ -21,7 +21,7 @@ import java.time.LocalDateTime; @@ -21,7 +21,7 @@ import java.time.LocalDateTime;
* @author xbw
*/
@Service("iTBunchingService")
@DS("bunching")
@DS("library")
public class TBunchingServiceImpl extends ServiceImpl<TBunchingMapper, TBunching> implements TBunchingService {
@ -44,7 +44,7 @@ public class TBunchingServiceImpl extends ServiceImpl<TBunchingMapper, TBunching @@ -44,7 +44,7 @@ public class TBunchingServiceImpl extends ServiceImpl<TBunchingMapper, TBunching
}
tBunching.setUpdateTime(LocalDateTime.now());
tBunching.setUpdateBy(UserProvider.getUser().getUserName());
tBunching.setUpdateBy(UserProvider.getUser().getUserId());
tBunching.setUpdateName(UserProvider.getUser().getUserId());
this.updateById(tBunching);

13
jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TReceiveConfigServiceImpl.java

@ -27,7 +27,7 @@ import java.util.stream.Collectors; @@ -27,7 +27,7 @@ import java.util.stream.Collectors;
* @author xbw
*/
@Service("iTReceiveServiceConfig")
@DS("receiveConfig")
@DS("library")
public class TReceiveConfigServiceImpl extends ServiceImpl<TReceiveConfigMapper, TReceiveConfig> implements TReceiveConfigService {
@Resource
@ -109,14 +109,21 @@ public class TReceiveConfigServiceImpl extends ServiceImpl<TReceiveConfigMapper, @@ -109,14 +109,21 @@ public class TReceiveConfigServiceImpl extends ServiceImpl<TReceiveConfigMapper,
// 更新配置
tReceiveConfig.setUpdateTime(LocalDateTime.now());
tReceiveConfig.setUpdateName(user.getUserName());
tReceiveConfig.setUpdateBy(user.getId());
tReceiveConfig.setUpdateBy(user.getUserId());
if(tReceiveConfig.getId()==null){
tReceiveConfig.setCreateBy(user.getUserId());
tReceiveConfig.setCreateName(user.getUserId());
tReceiveConfig.setCreateTime(LocalDateTime.now());
this.save(tReceiveConfig);
}else {
this.updateById(tReceiveConfig);
}
LocalDateTime now = LocalDateTime.now();
tReceives.forEach(item -> {
item.setCreateTime(now);
item.setCreateBy(user.getId());
item.setCreateBy(user.getUserId());
item.setCreateName(user.getUserName());
});
// 添加修改记录

2
jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TReceiveServiceImpl.java

@ -15,7 +15,7 @@ import org.springframework.stereotype.Service; @@ -15,7 +15,7 @@ import org.springframework.stereotype.Service;
* @author xbw
*/
@Service("iTReceiveService")
@DS("receive")
@DS("library")
public class TReceiveServiceImpl extends ServiceImpl<TReceiveMapper, TReceive> implements TReceiveService {

2
jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TSystemConfigurationServiceImpl.java

@ -21,7 +21,7 @@ import java.time.LocalDateTime; @@ -21,7 +21,7 @@ import java.time.LocalDateTime;
* @author xbw
*/
@Service("iTSystemConfigurationService")
@DS("systemConfiguration")
@DS("library")
public class TSystemConfigurationServiceImpl extends ServiceImpl<TSystemConfigurationMapper, TSystemConfiguration> implements TSystemConfigurationService {

4
jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java

@ -23,7 +23,7 @@ import java.time.LocalDateTime; @@ -23,7 +23,7 @@ import java.time.LocalDateTime;
* @author xbw
*/
@Service("iUserForLibraryService")
@DS("userForLibrary")
@DS("library")
public class TUserForLibraryServiceImpl extends ServiceImpl<TUserForLibraryMapper, TUserForLibrary> implements TUserForLibraryService {
@ -32,7 +32,7 @@ public class TUserForLibraryServiceImpl extends ServiceImpl<TUserForLibraryMappe @@ -32,7 +32,7 @@ public class TUserForLibraryServiceImpl extends ServiceImpl<TUserForLibraryMappe
if (StringUtils.isBlank(tUserForLibraryDtoAdd.getUserName())) {
throw new DataException("用户姓名不正确");
}
if (StringUtils.isBlank(tUserForLibraryDtoAdd.getUserPhone()) || PhoneUtil.isMobile(tUserForLibraryDtoAdd.getUserPhone())) {
if (StringUtils.isBlank(tUserForLibraryDtoAdd.getUserPhone()) || !PhoneUtil.isMobile(tUserForLibraryDtoAdd.getUserPhone())) {
throw new DataException("用户号码不正确");
}
if (tUserForLibraryDtoAdd.getSex() == null) {

4
jnpf-library/jnpf-library-biz/src/main/resources/mapper/TBunchingMapper.xml

@ -28,8 +28,8 @@ @@ -28,8 +28,8 @@
<include refid="Base_Column_List"/>
from t_bunching
<where>
<if test="bunchingTo!='' and bunchingTo != null">
and bunching_to like concat('%',#{bunchingTo},'%')
<if test="param.bunchingTo!='' and param.bunchingTo != null">
and bunching_to like concat('%',#{param.bunchingTo},'%')
</if>
and del_flag = 0
</where>

4
jnpf-library/jnpf-library-biz/src/main/resources/mapper/TSystemConfiguration.xml

@ -28,8 +28,8 @@ @@ -28,8 +28,8 @@
<include refid="Base_Column_List"/>
from t_system_configuration
<where>
<if test="systemParameter!='' and systemParameter != null">
and system_parameter like concat('%',#{systemParameter},'%')
<if test="param.systemParameter!='' and param.systemParameter != null">
and system_parameter like concat('%',#{param.systemParameter},'%')
</if>
and del_flag = 0
</where>

8
jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml

@ -31,11 +31,11 @@ @@ -31,11 +31,11 @@
<include refid="Base_Column_List"/>
from t_user_for_library
<where>
<if test="userPhone!='' and userPhone != null">
and user_phone like concat('%',#{userPhone},'%')
<if test="param.userPhone!='' and param.userPhone != null">
and user_phone like concat('%',#{param.userPhone},'%')
</if>
<if test="userName!='' and userName != null">
and user_name like concat('%',#{userName},'%')
<if test="param.userName!='' and param.userName != null">
and user_name like concat('%',#{param.userName},'%')
</if>
and del_flag = 0
</where>

1
jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TBunching.java

@ -35,7 +35,6 @@ public class TBunching implements Serializable { @@ -35,7 +35,6 @@ public class TBunching implements Serializable {
@ApiModelProperty(value = "删除标记0-正常 1-删除")
@TableField(value = "del_flag")
@TableLogic
private Integer delFlag;
@ApiModelProperty(value = "创建者id")

1
jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TSystemConfiguration.java

@ -35,7 +35,6 @@ public class TSystemConfiguration implements Serializable { @@ -35,7 +35,6 @@ public class TSystemConfiguration implements Serializable {
@ApiModelProperty(value = "删除标记0-正常 1-删除")
@TableField(value = "del_flag")
@TableLogic
private Integer delFlag;
@ApiModelProperty(value = "创建者id")

1
jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TUserForLibrary.java

@ -56,7 +56,6 @@ public class TUserForLibrary implements Serializable { @@ -56,7 +56,6 @@ public class TUserForLibrary implements Serializable {
@ApiModelProperty(value = "删除标记0-正常 1-删除")
@TableField(value = "del_flag")
@TableLogic
private Integer delFlag;
@ApiModelProperty(value = "创建者id")

Loading…
Cancel
Save