diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TBunchingMapper.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TBunchingMapper.java new file mode 100644 index 0000000..ce65486 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TBunchingMapper.java @@ -0,0 +1,15 @@ +package jnpf.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import jnpf.entity.TBunching; +import jnpf.model.dto.TBunchingDto; + + +/** + * @author xbw + */ +public interface TBunchingMapper extends BaseMapper { + IPage selectList(IPage page, TBunchingDto.TBunchingDtoParam param); +} + diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TSystemConfigurationMapper.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TSystemConfigurationMapper.java new file mode 100644 index 0000000..a880aa5 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/mapper/TSystemConfigurationMapper.java @@ -0,0 +1,17 @@ +package jnpf.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import jnpf.entity.TSystemConfiguration; +import jnpf.entity.TUserForLibrary; +import jnpf.model.dto.TSystemConfigurationDto; +import jnpf.model.dto.TUserForLibraryDto; + + +/** + * @author xbw + */ +public interface TSystemConfigurationMapper extends BaseMapper { + IPage selectList(IPage page, TSystemConfigurationDto.TSystemConfigurationDtoParam param); +} + diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TBunchingService.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TBunchingService.java new file mode 100644 index 0000000..756b384 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TBunchingService.java @@ -0,0 +1,23 @@ +package jnpf.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; +import jnpf.entity.TBunching; +import jnpf.entity.TSystemConfiguration; +import jnpf.model.dto.TBunchingDto; +import jnpf.model.dto.TSystemConfigurationDto; + + +/** + * @author xbw + */ +public interface TBunchingService extends IService { + + void addOrUpdate(TBunchingDto.TBunchingDtoAddOrUpdate bunchingDtoAddOrUpdate); + + void del(TBunchingDto.TBunchingDtoDel del); + + IPage selectList(TBunchingDto.TBunchingDtoParam param); + +} + diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TSystemConfigurationService.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TSystemConfigurationService.java new file mode 100644 index 0000000..db6dda2 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TSystemConfigurationService.java @@ -0,0 +1,21 @@ +package jnpf.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; +import jnpf.entity.TSystemConfiguration; +import jnpf.model.dto.TSystemConfigurationDto; + + +/** + * @author xbw + */ +public interface TSystemConfigurationService extends IService { + + void addOrUpdate(TSystemConfigurationDto.TSystemConfigurationDtoAdd tSystemConfigurationDtoAdd); + + void del(TSystemConfigurationDto.TSystemConfigurationDtoDel configurationDtoDel); + + IPage selectList(TSystemConfigurationDto.TSystemConfigurationDtoParam param); + +} + diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TUserForLibraryService.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TUserForLibraryService.java index bde0a87..0897d3b 100644 --- a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TUserForLibraryService.java +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/TUserForLibraryService.java @@ -11,11 +11,11 @@ import jnpf.model.dto.TUserForLibraryDto; */ public interface TUserForLibraryService extends IService{ - void addOrUpdateUser(TUserForLibraryDto.TUserForLibraryDtoAdd tUserForLibraryDtoAdd); + void addOrUpdate(TUserForLibraryDto.TUserForLibraryDtoAdd tUserForLibraryDtoAdd); - void delUser(TUserForLibraryDto.TUserForLibraryDtoDel userForLibraryDtoDel); + void del(TUserForLibraryDto.TUserForLibraryDtoDel userForLibraryDtoDel); - IPage getUserLibraryList(TUserForLibraryDto.TUserForLibraryDtoParam param); + IPage selectList(TUserForLibraryDto.TUserForLibraryDtoParam param); } diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TBunchingServiceImpl.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TBunchingServiceImpl.java new file mode 100644 index 0000000..95af138 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TBunchingServiceImpl.java @@ -0,0 +1,71 @@ +package jnpf.service.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import jnpf.entity.TBunching; +import jnpf.exception.DataException; +import jnpf.mapper.TBunchingMapper; +import jnpf.model.dto.TBunchingDto; +import jnpf.service.TBunchingService; +import jnpf.util.UserProvider; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.time.LocalDateTime; + + +/** + * @author xbw + */ +@Service("iTBunchingService") +@DS("bunching") +public class TBunchingServiceImpl extends ServiceImpl implements TBunchingService { + + + @Override + public void addOrUpdate(TBunchingDto.TBunchingDtoAddOrUpdate bunchingDtoAddOrUpdate) { + if (StringUtils.isBlank(bunchingDtoAddOrUpdate.getBunchingTo())) { + throw new DataException("分堆去向不能为空"); + } + if (bunchingDtoAddOrUpdate.getBunchingNumber() == null) { + throw new DataException("送样数量不能为空"); + } + + TBunching tBunching = new TBunching(); + BeanUtils.copyProperties(bunchingDtoAddOrUpdate, tBunching); + if (bunchingDtoAddOrUpdate.getId() == null) { + tBunching.setCreateName(UserProvider.getUser().getUserName()); + tBunching.setCreateBy(UserProvider.getUser().getUserId()); + tBunching.setCreateTime(LocalDateTime.now()); + this.save(tBunching); + } + + tBunching.setUpdateTime(LocalDateTime.now()); + tBunching.setUpdateBy(UserProvider.getUser().getUserName()); + tBunching.setUpdateName(UserProvider.getUser().getUserId()); + this.updateById(tBunching); + + } + + @Override + public void del(TBunchingDto.TBunchingDtoDel del) { + if (del.getId() == null) { + throw new DataException("请传入系统参数id"); + } + + TBunching byId = this.getById(del.getId()); + if (byId == null || byId.getDelFlag() == 1) { + throw new DataException("不存在或已删除"); + } + byId.setDelFlag(1); + this.updateById(byId); + } + + @Override + public IPage selectList(TBunchingDto.TBunchingDtoParam param) { + return this.baseMapper.selectList(new Page<>(param.getCurrent(), param.getSize()), param); + } +} diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TSystemConfigurationServiceImpl.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TSystemConfigurationServiceImpl.java new file mode 100644 index 0000000..ebbbccc --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TSystemConfigurationServiceImpl.java @@ -0,0 +1,77 @@ +package jnpf.service.impl; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import jnpf.entity.TSystemConfiguration; +import jnpf.exception.DataException; +import jnpf.mapper.TSystemConfigurationMapper; +import jnpf.model.dto.TSystemConfigurationDto; +import jnpf.service.TSystemConfigurationService; +import jnpf.util.UserProvider; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.time.LocalDateTime; + + +/** + * @author xbw + */ +@Service("iTSystemConfigurationService") +@DS("systemConfiguration") +public class TSystemConfigurationServiceImpl extends ServiceImpl implements TSystemConfigurationService { + + + @Override + public void addOrUpdate(TSystemConfigurationDto.TSystemConfigurationDtoAdd tSystemConfigurationDtoAdd) { + if (StringUtils.isBlank(tSystemConfigurationDtoAdd.getSystemParameter())) { + throw new DataException("系统参数不能为空"); + } + if (StringUtils.isBlank(tSystemConfigurationDtoAdd.getSystemParameterValue())) { + throw new DataException("系统参数值不能为空"); + } + if (StringUtils.isBlank(tSystemConfigurationDtoAdd.getSystemParameterRemark())) { + throw new DataException("系统参数说明不能为空"); + } + + TSystemConfiguration tSystemConfiguration = new TSystemConfiguration(); + BeanUtils.copyProperties(tSystemConfigurationDtoAdd, tSystemConfiguration); + if (tSystemConfigurationDtoAdd.getId() == null) { + BeanUtils.copyProperties(tSystemConfigurationDtoAdd, tSystemConfiguration); + tSystemConfiguration.setCreateTime(LocalDateTime.now()); + tSystemConfiguration.setCreateName(UserProvider.getUser().getUserName()); + tSystemConfiguration.setCreateBy(UserProvider.getUser().getUserId()); + this.save(tSystemConfiguration); + return; + } + + tSystemConfiguration.setUpdateTime(LocalDateTime.now()); + tSystemConfiguration.setUpdateBy(UserProvider.getUser().getUserName()); + tSystemConfiguration.setUpdateName(UserProvider.getUser().getUserId()); + this.updateById(tSystemConfiguration); + + } + + @Override + public void del(TSystemConfigurationDto.TSystemConfigurationDtoDel configurationDtoDel) { + if (configurationDtoDel.getId() == null) { + throw new DataException("请传入系统参数id"); + } + + TSystemConfiguration byId = this.getById(configurationDtoDel.getId()); + if(byId==null||byId.getDelFlag()==1){ + throw new DataException("不存在或已删除"); + } + + byId.setDelFlag(1); + this.updateById(byId); + } + + @Override + public IPage selectList(TSystemConfigurationDto.TSystemConfigurationDtoParam param) { + return this.baseMapper.selectList(new Page<>(param.getCurrent(), param.getSize()), param); + } +} diff --git a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java index 63a465f..a90817e 100644 --- a/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java +++ b/jnpf-library/jnpf-library-biz/src/main/java/jnpf/service/impl/TUserForLibraryServiceImpl.java @@ -28,7 +28,7 @@ public class TUserForLibraryServiceImpl extends ServiceImpl getUserLibraryList(TUserForLibraryDto.TUserForLibraryDtoParam param) { + public IPage selectList(TUserForLibraryDto.TUserForLibraryDtoParam param) { return this.baseMapper.selectList(new Page<>(param.getCurrent(), param.getSize()), param); } } diff --git a/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TBunching.xml b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TBunching.xml new file mode 100644 index 0000000..29dda5c --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TBunching.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + id,bunching_to,bunching_remark,bunching_number, + create_by,update_by,update_name,update_time,del_flag, + create_time,create_name + + + + + diff --git a/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TSystemConfiguration.xml b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TSystemConfiguration.xml new file mode 100644 index 0000000..77b6ed9 --- /dev/null +++ b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TSystemConfiguration.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + id,system_parameter,system_parameter_remark,system_parameter_value, + create_by,update_by,update_name,update_time,del_flag, + create_time,create_name + + + + + diff --git a/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml index 43a24bb..15a856e 100644 --- a/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml +++ b/jnpf-library/jnpf-library-biz/src/main/resources/mapper/TUserForLibraryMapper.xml @@ -2,7 +2,7 @@ - + @@ -26,7 +26,7 @@ create_by,update_by,update_name,update_time,del_flag, create_time,create_name - select from t_user_for_library diff --git a/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TBunchingController.java b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TBunchingController.java new file mode 100644 index 0000000..1e79880 --- /dev/null +++ b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TBunchingController.java @@ -0,0 +1,51 @@ +package jnpf.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import io.swagger.annotations.Api; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import jnpf.base.ActionResult; +import jnpf.constant.MsgCode; +import jnpf.entity.TBunching; +import jnpf.model.dto.TBunchingDto; +import jnpf.service.TBunchingService; +import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xbw + */ +@RestController +@Api("分堆管理") +@Tag(name = "分堆管理", description = "bunching") +@RequestMapping("/bunching") +@AllArgsConstructor +public class TBunchingController { + private final TBunchingService tBunchingService; + + @Operation(summary = "分堆新增|修改") + @PostMapping("newOrUpdateBunching") + public ActionResult newOrUpdateUserForLibrary(@RequestBody TBunchingDto.TBunchingDtoAddOrUpdate param) { + tBunchingService.addOrUpdate(param); + return ActionResult.success(MsgCode.SU000.get()); + } + + @Operation(summary = "分堆删除") + @PostMapping("delBunching") + public ActionResult delUserForLibrary(@RequestBody TBunchingDto.TBunchingDtoDel tBunchingDtoDel) { + tBunchingService.del(tBunchingDtoDel); + return ActionResult.success(MsgCode.SU000.get()); + } + + + @Operation(summary = "分堆查询") + @PostMapping("selectList") + public ActionResult> selectList(@RequestBody TBunchingDto.TBunchingDtoParam param) { + return ActionResult.success(MsgCode.SU000.get(), tBunchingService.selectList(param)); + } + + +} diff --git a/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TSystemConfigurationController.java b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TSystemConfigurationController.java new file mode 100644 index 0000000..f09d19c --- /dev/null +++ b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TSystemConfigurationController.java @@ -0,0 +1,51 @@ +package jnpf.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import io.swagger.annotations.Api; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import jnpf.base.ActionResult; +import jnpf.constant.MsgCode; +import jnpf.entity.TSystemConfiguration; +import jnpf.model.dto.TSystemConfigurationDto; +import jnpf.service.TSystemConfigurationService; +import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xbw + */ +@RestController +@Api("系统配置管理") +@Tag(name = "系统配置管理", description = "systemConfiguration") +@RequestMapping("/systemConfiguration") +@AllArgsConstructor +public class TSystemConfigurationController { + private final TSystemConfigurationService tSystemConfigurationService; + + @Operation(summary = "系统配置新增") + @PostMapping("newOrUpdateSystemConfiguration") + public ActionResult newOrUpdateSystemConfiguration(@RequestBody TSystemConfigurationDto.TSystemConfigurationDtoAdd tSystemConfigurationDtoAdd) { + tSystemConfigurationService.addOrUpdate(tSystemConfigurationDtoAdd); + return ActionResult.success(MsgCode.SU000.get()); + } + + @Operation(summary = "系统配置删除") + @PostMapping("delSystemConfiguration") + public ActionResult delSystemConfiguration(@RequestBody TSystemConfigurationDto.TSystemConfigurationDtoDel configurationDtoDel) { + tSystemConfigurationService.del(configurationDtoDel); + return ActionResult.success(MsgCode.SU000.get()); + } + + + @Operation(summary = "系配置查询") + @PostMapping("selectList") + public ActionResult> selectList(@RequestBody TSystemConfigurationDto.TSystemConfigurationDtoParam param) { + return ActionResult.success(MsgCode.SU000.get(), tSystemConfigurationService.selectList(param)); + } + + +} diff --git a/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TUserForLibraryController.java b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TUserForLibraryController.java new file mode 100644 index 0000000..eba434d --- /dev/null +++ b/jnpf-library/jnpf-library-controller/src/main/java/jnpf/controller/TUserForLibraryController.java @@ -0,0 +1,52 @@ +package jnpf.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import io.swagger.annotations.Api; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import jnpf.base.ActionResult; +import jnpf.constant.MsgCode; +import jnpf.entity.TUserForLibrary; +import jnpf.model.dto.TUserForLibraryDto; +import jnpf.service.TUserForLibraryService; +import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xbw + */ +@RestController +@Api("赠品用户管理") +@Tag(name = "赠品用户管理", description = "userForLibrary") +@RequestMapping("/userForLibrary") +@AllArgsConstructor +public class TUserForLibraryController { + private final TUserForLibraryService tUserForLibraryService; + + @Operation(summary = "用户新增") + @PostMapping("newOrUpdateUserForLibrary") + public ActionResult newOrUpdateUserForLibrary(@RequestBody TUserForLibraryDto.TUserForLibraryDtoAdd param) { + tUserForLibraryService.addOrUpdate(param); + return ActionResult.success(MsgCode.SU000.get()); + } + + @Operation(summary = "用户删除") + @PostMapping("delUserForLibrary") + public ActionResult delUserForLibrary(@RequestBody TUserForLibraryDto.TUserForLibraryDtoDel userForLibraryDtoDel) { + tUserForLibraryService.del(userForLibraryDtoDel); + return ActionResult.success(MsgCode.SU000.get()); + } + + + @Operation(summary = "用户查询") + @PostMapping("selectList") + public ActionResult> selectList(@RequestBody TUserForLibraryDto.TUserForLibraryDtoParam param) { + return ActionResult.success(MsgCode.SU000.get(),tUserForLibraryService.selectList(param)); + } + + + +} diff --git a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TBunching.java b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TBunching.java new file mode 100644 index 0000000..5f629f0 --- /dev/null +++ b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TBunching.java @@ -0,0 +1,84 @@ +package jnpf.entity; + +import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * @author xbw + */ +@Data +@TableName("t_bunching") +public class TBunching implements Serializable { + private static final long serialVersionUID = -65167281438767901L; + + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + @ApiModelProperty(value = "分堆去向") + @TableField(value = "bunching_to") + private String bunchingTo; + + @ApiModelProperty(value = "分堆说明") + @TableField(value = "bunching_remark") + private String bunchingRemark; + + @ApiModelProperty(value = "送阳册数") + @TableField(value = "bunching_number") + private Integer bunchingNumber; + + + @ApiModelProperty(value = "删除标记0-正常 1-删除") + @TableField(value = "del_flag") + @TableLogic + private Integer delFlag; + + @ApiModelProperty(value = "创建者id") + @TableField(value = "create_by") + private String createBy; + + @ApiModelProperty(value = "创建者名称") + @TableField(value = "create_name") + private String createName; + + @ApiModelProperty(value = "创建时间") + @TableField(value = "create_time",fill = FieldFill.INSERT) + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新者id") + @TableField(value = "update_by") + private String updateBy; + + @ApiModelProperty(value = "更新者名称") + @TableField(value = "update_name") + private String updateName; + + @ApiModelProperty(value = "修改时间") + @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE) + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "创建人单位名称") + @TableField(value = "create_corp_name") + private String createCorpName; + + @ApiModelProperty(value = "创建人单位id") + @TableField(value = "create_corp_id") + private String createCorpId; + + @ApiModelProperty(value = "创建人部门名称") + @TableField(value = "create_dept_name") + private String createDeptName; + + @ApiModelProperty(value = "创建人部门id") + @TableField(value = "create_dept_id") + private String createDeptId; +} diff --git a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TSystemConfiguration.java b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TSystemConfiguration.java new file mode 100644 index 0000000..8905083 --- /dev/null +++ b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/entity/TSystemConfiguration.java @@ -0,0 +1,84 @@ +package jnpf.entity; + +import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * @author xbw + */ +@Data +@TableName("t_system_configuration") +public class TSystemConfiguration implements Serializable { + private static final long serialVersionUID = -65167281438767901L; + + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + @ApiModelProperty(value = "系统参数") + @TableField(value = "system_parameter") + private String systemParameter; + + @ApiModelProperty(value = "系统参数说明") + @TableField(value = "system_parameter_remark") + private String systemParameterRemark; + + @ApiModelProperty(value = "系统参数值") + @TableField(value = "system_parameter_value") + private String systemParameterValue; + + + @ApiModelProperty(value = "删除标记0-正常 1-删除") + @TableField(value = "del_flag") + @TableLogic + private Integer delFlag; + + @ApiModelProperty(value = "创建者id") + @TableField(value = "create_by") + private String createBy; + + @ApiModelProperty(value = "创建者名称") + @TableField(value = "create_name") + private String createName; + + @ApiModelProperty(value = "创建时间") + @TableField(value = "create_time",fill = FieldFill.INSERT) + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新者id") + @TableField(value = "update_by") + private String updateBy; + + @ApiModelProperty(value = "更新者名称") + @TableField(value = "update_name") + private String updateName; + + @ApiModelProperty(value = "修改时间") + @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE) + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "创建人单位名称") + @TableField(value = "create_corp_name") + private String createCorpName; + + @ApiModelProperty(value = "创建人单位id") + @TableField(value = "create_corp_id") + private String createCorpId; + + @ApiModelProperty(value = "创建人部门名称") + @TableField(value = "create_dept_name") + private String createDeptName; + + @ApiModelProperty(value = "创建人部门id") + @TableField(value = "create_dept_id") + private String createDeptId; +} diff --git a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TBunchingDto.java b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TBunchingDto.java new file mode 100644 index 0000000..2fb1530 --- /dev/null +++ b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TBunchingDto.java @@ -0,0 +1,50 @@ +package jnpf.model.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author xbw + */ +public class TBunchingDto { + + private TBunchingDto() { + } + + @Data + public static class TBunchingDtoParam extends TBunchingDtoBasePageParam { + @ApiModelProperty(value = "分堆去向") + private String bunchingTo; + } + + @Data + public static class TBunchingDtoBasePageParam { + @ApiModelProperty("当前页") + private Integer current = 1; + @ApiModelProperty("页大小") + private Integer size = 10; + } + + @Data + public static class TBunchingDtoDel { + @ApiModelProperty(value = "分堆id") + private Long id; + } + + @Data + public static class TBunchingDtoAddOrUpdate { + @ApiModelProperty(value = "分堆id 新增不传") + private Long id; + + @ApiModelProperty(value = "分堆去向") + private String bunchingTo; + + @ApiModelProperty(value = "分堆说明") + private String bunchingRemark; + + @ApiModelProperty(value = "送阳册数") + private Integer bunchingNumber; + + + } +} diff --git a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TSystemConfigurationDto.java b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TSystemConfigurationDto.java new file mode 100644 index 0000000..fe4b143 --- /dev/null +++ b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TSystemConfigurationDto.java @@ -0,0 +1,49 @@ +package jnpf.model.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author xbw + */ +public class TSystemConfigurationDto { + + private TSystemConfigurationDto(){} + + @Data + public static class TSystemConfigurationDtoParam extends TSystemConfigurationDtoBasePageParam{ + @ApiModelProperty(value = "系统参数") + private String systemParameter; + } + + @Data + public static class TSystemConfigurationDtoBasePageParam { + @ApiModelProperty("当前页") + private Integer current = 1; + @ApiModelProperty("页大小") + private Integer size = 10; + } + + @Data + public static class TSystemConfigurationDtoDel { + @ApiModelProperty(value = "用户id") + private Long id; + } + + @Data + public static class TSystemConfigurationDtoAdd { + @ApiModelProperty(value = "用户id 新增不传") + private Long id; + + @ApiModelProperty(value = "系统参数") + private String systemParameter; + + @ApiModelProperty(value = "系统参数说明") + private String systemParameterRemark; + + @ApiModelProperty(value = "系统参数值") + private String systemParameterValue; + + + } +} diff --git a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TUserForLibraryDto.java b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TUserForLibraryDto.java index b2542e3..55f8b5c 100644 --- a/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TUserForLibraryDto.java +++ b/jnpf-library/jnpf-library-entity/src/main/java/jnpf/model/dto/TUserForLibraryDto.java @@ -11,7 +11,7 @@ public class TUserForLibraryDto { private TUserForLibraryDto(){} @Data - public static class TUserForLibraryDtoParam extends BasePageParam{ + public static class TUserForLibraryDtoParam extends TUserForLibraryDtoBasePageParam{ @ApiModelProperty(value = "用户手机号") private String userPhone; @@ -20,7 +20,7 @@ public class TUserForLibraryDto { } @Data - public static class BasePageParam { + public static class TUserForLibraryDtoBasePageParam { @ApiModelProperty("当前页") private Integer current = 1; @ApiModelProperty("页大小")