Showing
9 changed files
with
53 additions
and
0 deletions
| @@ -619,6 +619,7 @@ CREATE TABLE IF NOT EXISTS order_info_change_record ( | @@ -619,6 +619,7 @@ CREATE TABLE IF NOT EXISTS order_info_change_record ( | ||
| 619 | `examine_status` varchar(50) DEFAULT NULL COMMENT '审核状态', | 619 | `examine_status` varchar(50) DEFAULT NULL COMMENT '审核状态', |
| 620 | `order_id` varchar(32) NOT NULL COMMENT '订货单ID', | 620 | `order_id` varchar(32) NOT NULL COMMENT '订货单ID', |
| 621 | `output` bool DEFAULT NULL comment '已产出', | 621 | `output` bool DEFAULT NULL comment '已产出', |
| 622 | + `change_description` text DEFAULT NULL COMMENT '变更说明'; | ||
| 622 | PRIMARY KEY (`id`), | 623 | PRIMARY KEY (`id`), |
| 623 | KEY `idx_ordering_unit` (`ordering_unit`), | 624 | KEY `idx_ordering_unit` (`ordering_unit`), |
| 624 | KEY `idx_order_no` (`order_no`), | 625 | KEY `idx_order_no` (`order_no`), |
| @@ -37,6 +37,9 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { | @@ -37,6 +37,9 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { | ||
| 37 | @ApiModelProperty("资金清收责任人") | 37 | @ApiModelProperty("资金清收责任人") |
| 38 | private String fundResponsiblePerson; | 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,6 +37,9 @@ public class QueryFundCoordinationBo extends BaseBo<FundCoordination> { | ||
| 37 | @ApiModelProperty("资金清收责任人") | 37 | @ApiModelProperty("资金清收责任人") |
| 38 | private String fundResponsiblePerson; | 38 | private String fundResponsiblePerson; |
| 39 | 39 | ||
| 40 | + @ApiModelProperty("资金清收责任人的部门和角色") | ||
| 41 | + private String deptAndRole; | ||
| 42 | + | ||
| 40 | /** | 43 | /** |
| 41 | * 申请日期 | 44 | * 申请日期 |
| 42 | */ | 45 | */ |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/ledger/FundCoordinationController.java
| 1 | package com.lframework.xingyun.sc.controller.ledger; | 1 | package com.lframework.xingyun.sc.controller.ledger; |
| 2 | 2 | ||
| 3 | import com.lframework.starter.web.core.annotations.security.HasPermission; | 3 | import com.lframework.starter.web.core.annotations.security.HasPermission; |
| 4 | +import com.lframework.starter.web.core.components.security.SecurityUtil; | ||
| 4 | import com.lframework.starter.web.core.controller.DefaultBaseController; | 5 | import com.lframework.starter.web.core.controller.DefaultBaseController; |
| 5 | import com.lframework.starter.web.core.utils.PageResultUtil; | 6 | import com.lframework.starter.web.core.utils.PageResultUtil; |
| 6 | import com.lframework.starter.web.core.components.resp.PageResult; | 7 | import com.lframework.starter.web.core.components.resp.PageResult; |
| 7 | import com.lframework.starter.web.core.components.resp.InvokeResult; | 8 | import com.lframework.starter.web.core.components.resp.InvokeResult; |
| 9 | +import javax.annotation.Resource; | ||
| 8 | import javax.validation.constraints.NotBlank; | 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 | import com.lframework.xingyun.sc.bo.ledger.fund.GetFundCoordinationBo; | 17 | import com.lframework.xingyun.sc.bo.ledger.fund.GetFundCoordinationBo; |
| 10 | import com.lframework.xingyun.sc.bo.ledger.fund.QueryFundCoordinationBo; | 18 | import com.lframework.xingyun.sc.bo.ledger.fund.QueryFundCoordinationBo; |
| 11 | import com.lframework.xingyun.sc.entity.FundCoordination; | 19 | import com.lframework.xingyun.sc.entity.FundCoordination; |
| @@ -39,6 +47,10 @@ public class FundCoordinationController extends DefaultBaseController { | @@ -39,6 +47,10 @@ public class FundCoordinationController extends DefaultBaseController { | ||
| 39 | 47 | ||
| 40 | @Autowired | 48 | @Autowired |
| 41 | private FundCoordinationService fundCoordinationService; | 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,4 +130,21 @@ public class FundCoordinationController extends DefaultBaseController { | ||
| 118 | 130 | ||
| 119 | return InvokeResultBuilder.success(); | 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,6 +46,11 @@ public class FundCoordination extends BaseEntity implements BaseDto { | ||
| 46 | private String fundResponsiblePerson; | 46 | private String fundResponsiblePerson; |
| 47 | 47 | ||
| 48 | /** | 48 | /** |
| 49 | + * 资金清收责任人的部门和角色 | ||
| 50 | + */ | ||
| 51 | + private String deptAndRole; | ||
| 52 | + | ||
| 53 | + /** | ||
| 49 | * 申请日期 | 54 | * 申请日期 |
| 50 | */ | 55 | */ |
| 51 | private LocalDate applicationDate; | 56 | private LocalDate applicationDate; |
| @@ -65,6 +65,9 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat | @@ -65,6 +65,9 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat | ||
| 65 | if (!StringUtil.isBlank(vo.getFundResponsiblePerson())) { | 65 | if (!StringUtil.isBlank(vo.getFundResponsiblePerson())) { |
| 66 | data.setFundResponsiblePerson(vo.getFundResponsiblePerson()); | 66 | data.setFundResponsiblePerson(vo.getFundResponsiblePerson()); |
| 67 | } | 67 | } |
| 68 | + if (!StringUtil.isBlank(vo.getDeptAndRole())) { | ||
| 69 | + data.setDeptAndRole(vo.getDeptAndRole()); | ||
| 70 | + } | ||
| 68 | data.setApplicationDate(vo.getApplicationDate()); | 71 | data.setApplicationDate(vo.getApplicationDate()); |
| 69 | if (!StringUtil.isBlank(vo.getOrderingUnit())) { | 72 | if (!StringUtil.isBlank(vo.getOrderingUnit())) { |
| 70 | data.setOrderingUnit(vo.getOrderingUnit()); | 73 | data.setOrderingUnit(vo.getOrderingUnit()); |
| @@ -112,6 +115,7 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat | @@ -112,6 +115,7 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat | ||
| 112 | 115 | ||
| 113 | LambdaUpdateWrapper<FundCoordination> updateWrapper = Wrappers.lambdaUpdate(FundCoordination.class) | 116 | LambdaUpdateWrapper<FundCoordination> updateWrapper = Wrappers.lambdaUpdate(FundCoordination.class) |
| 114 | .set(FundCoordination::getFundResponsiblePerson, StringUtil.isBlank(vo.getFundResponsiblePerson()) ? null : vo.getFundResponsiblePerson()) | 117 | .set(FundCoordination::getFundResponsiblePerson, StringUtil.isBlank(vo.getFundResponsiblePerson()) ? null : vo.getFundResponsiblePerson()) |
| 118 | + .set(FundCoordination::getDeptAndRole, StringUtil.isBlank(vo.getDeptAndRole()) ? null : vo.getDeptAndRole()) | ||
| 115 | .set(FundCoordination::getOrderingUnit, StringUtil.isBlank(vo.getOrderingUnit()) ? null : vo.getOrderingUnit()) | 119 | .set(FundCoordination::getOrderingUnit, StringUtil.isBlank(vo.getOrderingUnit()) ? null : vo.getOrderingUnit()) |
| 116 | .set(FundCoordination::getCustomerShortId, vo.getCustomerShortId()) | 120 | .set(FundCoordination::getCustomerShortId, vo.getCustomerShortId()) |
| 117 | .set(FundCoordination::getCustomerType, StringUtil.isBlank(vo.getCustomerType()) ? null : vo.getCustomerType()) | 121 | .set(FundCoordination::getCustomerType, StringUtil.isBlank(vo.getCustomerType()) ? null : vo.getCustomerType()) |
| @@ -32,6 +32,9 @@ public class CreateFundCoordinationVo implements BaseVo, Serializable { | @@ -32,6 +32,9 @@ public class CreateFundCoordinationVo implements BaseVo, Serializable { | ||
| 32 | @Length(message = "资金清收责任人最多允许32个字符!") | 32 | @Length(message = "资金清收责任人最多允许32个字符!") |
| 33 | private String fundResponsiblePerson; | 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,6 +30,9 @@ public class UpdateFundCoordinationVo implements BaseVo, Serializable { | ||
| 30 | @Length(message = "资金清收责任人最多允许32个字符!") | 30 | @Length(message = "资金清收责任人最多允许32个字符!") |
| 31 | private String fundResponsiblePerson; | 31 | private String fundResponsiblePerson; |
| 32 | 32 | ||
| 33 | + @ApiModelProperty("资金清收责任人的部门和角色") | ||
| 34 | + private String deptAndRole; | ||
| 35 | + | ||
| 33 | /** | 36 | /** |
| 34 | * 订货单位 | 37 | * 订货单位 |
| 35 | */ | 38 | */ |
| @@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
| 7 | <result column="applicant" property="applicant"/> | 7 | <result column="applicant" property="applicant"/> |
| 8 | <result column="applicant_name" property="applicantName"/> | 8 | <result column="applicant_name" property="applicantName"/> |
| 9 | <result column="fund_responsible_person" property="fundResponsiblePerson"/> | 9 | <result column="fund_responsible_person" property="fundResponsiblePerson"/> |
| 10 | + <result column="dept_and_role" property="deptAndRole"/> | ||
| 10 | <result column="application_date" property="applicationDate"/> | 11 | <result column="application_date" property="applicationDate"/> |
| 11 | <result column="ordering_unit" property="orderingUnit"/> | 12 | <result column="ordering_unit" property="orderingUnit"/> |
| 12 | <result column="customer_short_id" property="customerShortId"/> | 13 | <result column="customer_short_id" property="customerShortId"/> |
| @@ -32,6 +33,7 @@ | @@ -32,6 +33,7 @@ | ||
| 32 | tb.applicant, | 33 | tb.applicant, |
| 33 | u.name AS applicant_name, | 34 | u.name AS applicant_name, |
| 34 | tb.fund_responsible_person, | 35 | tb.fund_responsible_person, |
| 36 | + tb.dept_and_role, | ||
| 35 | tb.application_date, | 37 | tb.application_date, |
| 36 | tb.ordering_unit, | 38 | tb.ordering_unit, |
| 37 | tb.customer_short_id, | 39 | tb.customer_short_id, |