结算权限修改
This commit is contained in:
parent
d8c999665b
commit
6c0ee86a22
|
|
@ -1596,8 +1596,8 @@ public class SltAgreementInfoController extends BaseController {
|
||||||
@ApiOperation(value = "结算审批列表")
|
@ApiOperation(value = "结算审批列表")
|
||||||
@GetMapping("/getSltList")
|
@GetMapping("/getSltList")
|
||||||
public TableDataInfo getSltList(SltAgreementInfo bean) {
|
public TableDataInfo getSltList(SltAgreementInfo bean) {
|
||||||
// Long deptId = typeService.getUserDeptId();
|
Long deptId = typeService.getUserDeptId();
|
||||||
// bean.setCompanyId(deptId);
|
bean.setCompanyId(deptId);
|
||||||
startPage();
|
startPage();
|
||||||
List<SltAgreementInfo> list = sltAgreementInfoService.getSltList(bean);
|
List<SltAgreementInfo> list = sltAgreementInfoService.getSltList(bean);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
|
|
||||||
|
|
@ -731,17 +731,17 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
||||||
UUID uuid = UUID.randomUUID();
|
UUID uuid = UUID.randomUUID();
|
||||||
String sltTask = uuid.toString();
|
String sltTask = uuid.toString();
|
||||||
String sltAuditor = null;
|
String sltAuditor = null;
|
||||||
if(GlobalConstants.LONG_JJ == deptId){
|
if(101 == deptId){
|
||||||
if (sltInfoVo.getSettlementType() == null) {
|
if (sltInfoVo.getSettlementType() == null) {
|
||||||
sltAuditor = "待张志峰,刘春杰审核";
|
sltAuditor = "待张志峰,刘春杰审核";
|
||||||
} else if (sltInfoVo.getSettlementType() == 1) {
|
} else if (sltInfoVo.getSettlementType() == 1) {
|
||||||
sltAuditor = "待张志峰审核";
|
sltAuditor = "待张志峰或李靖涛审核";
|
||||||
}else if (sltInfoVo.getSettlementType() == 2) {
|
}else if (sltInfoVo.getSettlementType() == 2) {
|
||||||
sltAuditor = "待刘春杰审核";
|
sltAuditor = "待刘春杰审核";
|
||||||
}else{
|
}else{
|
||||||
sltAuditor = "待审核";
|
sltAuditor = "待审核";
|
||||||
}
|
}
|
||||||
}else if(GlobalConstants.LONG_HY == deptId){
|
}else if(309 == deptId){
|
||||||
sltAuditor = "顾国强或王文斌审核";
|
sltAuditor = "顾国强或王文斌审核";
|
||||||
}else{
|
}else{
|
||||||
sltAuditor = "待审核";
|
sltAuditor = "待审核";
|
||||||
|
|
@ -878,33 +878,25 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
||||||
sltInfoVo.setUpdateTime(DateUtils.getNowDate());
|
sltInfoVo.setUpdateTime(DateUtils.getNowDate());
|
||||||
}
|
}
|
||||||
if (sltInfoVo !=null) {
|
if (sltInfoVo !=null) {
|
||||||
List<SltAgreementInfo> filteredLeaseList = getLeaseList(info).stream()
|
List<SltAgreementInfo> filteredLeaseList = new ArrayList<>(getLeaseList(info));
|
||||||
.filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId()))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
if (!filteredLeaseList.isEmpty()) {
|
if (!filteredLeaseList.isEmpty()) {
|
||||||
sltAgreementInfoMapper.insertSltAgreementDetailLease(filteredLeaseList, id);
|
sltAgreementInfoMapper.insertSltAgreementDetailLease(filteredLeaseList, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sltInfoVo !=null) {
|
if (sltInfoVo !=null) {
|
||||||
List<SltAgreementInfo> filteredRepairList = getRepairList(info).stream()
|
List<SltAgreementInfo> filteredRepairList = new ArrayList<>(getRepairList(info));
|
||||||
.filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId()))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
if (!filteredRepairList.isEmpty()) {
|
if (!filteredRepairList.isEmpty()) {
|
||||||
sltAgreementInfoMapper.insertSltAgreementDetailRepair(filteredRepairList, id);
|
sltAgreementInfoMapper.insertSltAgreementDetailRepair(filteredRepairList, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sltInfoVo !=null) {
|
if (sltInfoVo !=null) {
|
||||||
List<SltAgreementInfo> filteredScrapList = getScrapList(info).stream()
|
List<SltAgreementInfo> filteredScrapList = new ArrayList<>(getScrapList(info));
|
||||||
.filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId()))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
if (!filteredScrapList.isEmpty()) {
|
if (!filteredScrapList.isEmpty()) {
|
||||||
sltAgreementInfoMapper.insertSltAgreementDetailScrap(filteredScrapList, id);
|
sltAgreementInfoMapper.insertSltAgreementDetailScrap(filteredScrapList, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sltInfoVo !=null) {
|
if (sltInfoVo !=null) {
|
||||||
List<SltAgreementInfo> filteredLoseList = getLoseList(info).stream()
|
List<SltAgreementInfo> filteredLoseList = new ArrayList<>(getLoseList(info));
|
||||||
.filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId()))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
if (!filteredLoseList.isEmpty()) {
|
if (!filteredLoseList.isEmpty()) {
|
||||||
sltAgreementInfoMapper.insertSltAgreementDetailLose(filteredLoseList, id);
|
sltAgreementInfoMapper.insertSltAgreementDetailLose(filteredLoseList, id);
|
||||||
}
|
}
|
||||||
|
|
@ -1212,6 +1204,9 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
||||||
if(checkSettlementType == 1 && "73".equals(userId)){
|
if(checkSettlementType == 1 && "73".equals(userId)){
|
||||||
sltSwitch = true;
|
sltSwitch = true;
|
||||||
}
|
}
|
||||||
|
if(checkSettlementType == 1 && "422".equals(userId)){
|
||||||
|
sltSwitch = true;
|
||||||
|
}
|
||||||
if(checkSettlementType == 2 && "1549".equals(userId)){
|
if(checkSettlementType == 2 && "1549".equals(userId)){
|
||||||
sltSwitch = true;
|
sltSwitch = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -584,6 +584,7 @@
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
status,
|
status,
|
||||||
<if test="totalCostAll != null">cost,</if>
|
<if test="totalCostAll != null">cost,</if>
|
||||||
|
<if test="companyId != null">company_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="agreementId != null">#{agreementId},</if>
|
<if test="agreementId != null">#{agreementId},</if>
|
||||||
|
|
@ -594,6 +595,7 @@
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
1,
|
1,
|
||||||
<if test="totalCostAll != null">#{totalCostAll},</if>
|
<if test="totalCostAll != null">#{totalCostAll},</if>
|
||||||
|
<if test="companyId != null">#{companyId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue