Commit 94a0b1fee407de2d85b65142f3cc25d3933afbc7

Authored by yeqianyong
2 parents 09d28500 83066203

Merge remote-tracking branch 'origin/master_cj_zq' into master_cj_zq

... ... @@ -619,6 +619,7 @@ CREATE TABLE IF NOT EXISTS order_info_change_record (
619 619 `examine_status` varchar(50) DEFAULT NULL COMMENT '审核状态',
620 620 `order_id` varchar(32) NOT NULL COMMENT '订货单ID',
621 621 `output` bool DEFAULT NULL comment '已产出',
  622 + `change_description` text DEFAULT NULL COMMENT '变更说明';
622 623 PRIMARY KEY (`id`),
623 624 KEY `idx_ordering_unit` (`ordering_unit`),
624 625 KEY `idx_order_no` (`order_no`),
... ...
... ... @@ -37,6 +37,9 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> {
37 37 @ApiModelProperty("资金清收责任人")
38 38 private String fundResponsiblePerson;
39 39
  40 + @ApiModelProperty("资金清收责任人的部门和角色")
  41 + private String deptAndRole;
  42 +
40 43 /**
41 44 * 申请日期
42 45 */
... ...
... ... @@ -37,6 +37,9 @@ public class QueryFundCoordinationBo extends BaseBo<FundCoordination> {
37 37 @ApiModelProperty("资金清收责任人")
38 38 private String fundResponsiblePerson;
39 39
  40 + @ApiModelProperty("资金清收责任人的部门和角色")
  41 + private String deptAndRole;
  42 +
40 43 /**
41 44 * 申请日期
42 45 */
... ...
1 1 package com.lframework.xingyun.sc.controller.ledger;
2 2
3 3 import com.lframework.starter.web.core.annotations.security.HasPermission;
  4 +import com.lframework.starter.web.core.components.security.SecurityUtil;
4 5 import com.lframework.starter.web.core.controller.DefaultBaseController;
5 6 import com.lframework.starter.web.core.utils.PageResultUtil;
6 7 import com.lframework.starter.web.core.components.resp.PageResult;
7 8 import com.lframework.starter.web.core.components.resp.InvokeResult;
  9 +import javax.annotation.Resource;
8 10 import javax.validation.constraints.NotBlank;
  11 +import com.lframework.starter.web.inner.bo.system.user.QuerySysUserBo;
  12 +import com.lframework.starter.web.inner.entity.SysDept;
  13 +import com.lframework.starter.web.inner.entity.SysUser;
  14 +import com.lframework.starter.web.inner.service.system.SysDeptService;
  15 +import com.lframework.starter.web.inner.service.system.SysUserService;
  16 +import com.lframework.starter.web.inner.vo.system.user.QuerySysUserVo;
9 17 import com.lframework.xingyun.sc.bo.ledger.fund.GetFundCoordinationBo;
10 18 import com.lframework.xingyun.sc.bo.ledger.fund.QueryFundCoordinationBo;
11 19 import com.lframework.xingyun.sc.entity.FundCoordination;
... ... @@ -39,6 +47,10 @@ public class FundCoordinationController extends DefaultBaseController {
39 47
40 48 @Autowired
41 49 private FundCoordinationService fundCoordinationService;
  50 + @Resource
  51 + private SysDeptService sysDeptService;
  52 + @Resource
  53 + private SysUserService sysUserService;
42 54
43 55 /**
44 56 * 查询列表
... ... @@ -118,4 +130,21 @@ public class FundCoordinationController extends DefaultBaseController {
118 130
119 131 return InvokeResultBuilder.success();
120 132 }
  133 +
  134 + @ApiOperation("查询人员列表")
  135 + @GetMapping("/getFundResponsiblePersonList")
  136 + public InvokeResult<List<QuerySysUserBo>> getFundResponsiblePersonList() {
  137 + List<QuerySysUserBo> results = null;
  138 + String userId = SecurityUtil.getCurrentUser().getId();
  139 + SysDept dept = sysDeptService.getDept(userId);
  140 + if (dept != null) {
  141 + QuerySysUserVo vo = new QuerySysUserVo();
  142 + vo.setDeptCode(dept.getCode());
  143 + List<SysUser> datas = sysUserService.query(vo);
  144 + if (!CollectionUtil.isEmpty(datas)) {
  145 + results = datas.stream().map(QuerySysUserBo::new).collect(Collectors.toList());
  146 + }
  147 + }
  148 + return InvokeResultBuilder.success(results);
  149 + }
121 150 }
... ...
... ... @@ -46,6 +46,11 @@ public class FundCoordination extends BaseEntity implements BaseDto {
46 46 private String fundResponsiblePerson;
47 47
48 48 /**
  49 + * 资金清收责任人的部门和角色
  50 + */
  51 + private String deptAndRole;
  52 +
  53 + /**
49 54 * 申请日期
50 55 */
51 56 private LocalDate applicationDate;
... ...
... ... @@ -65,6 +65,9 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat
65 65 if (!StringUtil.isBlank(vo.getFundResponsiblePerson())) {
66 66 data.setFundResponsiblePerson(vo.getFundResponsiblePerson());
67 67 }
  68 + if (!StringUtil.isBlank(vo.getDeptAndRole())) {
  69 + data.setDeptAndRole(vo.getDeptAndRole());
  70 + }
68 71 data.setApplicationDate(vo.getApplicationDate());
69 72 if (!StringUtil.isBlank(vo.getOrderingUnit())) {
70 73 data.setOrderingUnit(vo.getOrderingUnit());
... ... @@ -112,6 +115,7 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat
112 115
113 116 LambdaUpdateWrapper<FundCoordination> updateWrapper = Wrappers.lambdaUpdate(FundCoordination.class)
114 117 .set(FundCoordination::getFundResponsiblePerson, StringUtil.isBlank(vo.getFundResponsiblePerson()) ? null : vo.getFundResponsiblePerson())
  118 + .set(FundCoordination::getDeptAndRole, StringUtil.isBlank(vo.getDeptAndRole()) ? null : vo.getDeptAndRole())
115 119 .set(FundCoordination::getOrderingUnit, StringUtil.isBlank(vo.getOrderingUnit()) ? null : vo.getOrderingUnit())
116 120 .set(FundCoordination::getCustomerShortId, vo.getCustomerShortId())
117 121 .set(FundCoordination::getCustomerType, StringUtil.isBlank(vo.getCustomerType()) ? null : vo.getCustomerType())
... ...
... ... @@ -32,6 +32,9 @@ public class CreateFundCoordinationVo implements BaseVo, Serializable {
32 32 @Length(message = "资金清收责任人最多允许32个字符!")
33 33 private String fundResponsiblePerson;
34 34
  35 + @ApiModelProperty("资金清收责任人的部门和角色")
  36 + private String deptAndRole;
  37 +
35 38 /**
36 39 * 申请日期
37 40 */
... ...
... ... @@ -30,6 +30,9 @@ public class UpdateFundCoordinationVo implements BaseVo, Serializable {
30 30 @Length(message = "资金清收责任人最多允许32个字符!")
31 31 private String fundResponsiblePerson;
32 32
  33 + @ApiModelProperty("资金清收责任人的部门和角色")
  34 + private String deptAndRole;
  35 +
33 36 /**
34 37 * 订货单位
35 38 */
... ...
... ... @@ -7,6 +7,7 @@
7 7 <result column="applicant" property="applicant"/>
8 8 <result column="applicant_name" property="applicantName"/>
9 9 <result column="fund_responsible_person" property="fundResponsiblePerson"/>
  10 + <result column="dept_and_role" property="deptAndRole"/>
10 11 <result column="application_date" property="applicationDate"/>
11 12 <result column="ordering_unit" property="orderingUnit"/>
12 13 <result column="customer_short_id" property="customerShortId"/>
... ... @@ -32,6 +33,7 @@
32 33 tb.applicant,
33 34 u.name AS applicant_name,
34 35 tb.fund_responsible_person,
  36 + tb.dept_and_role,
35 37 tb.application_date,
36 38 tb.ordering_unit,
37 39 tb.customer_short_id,
... ...