无用代码去除

This commit is contained in:
liang.chao 2024-07-23 18:04:19 +08:00
parent 96271ea0c3
commit 499c5be476
4 changed files with 4 additions and 15 deletions

View File

@ -221,6 +221,7 @@
rad.status as status,
su.nick_name as repairer,
rad.update_time as updateTime,
rad.commit as commit,
rad.type_id as typeId,
rad.remark as remark
from repair_apply_details rad

View File

@ -42,17 +42,7 @@ public class SltAgreementInfoController extends BaseController {
@GetMapping("/getSltAgreementInfo")
public TableDataInfo getSltAgreementInfo(AgreementInfo bean) {
startPage();
List<AgreementInfo> list = new ArrayList<>();
//逻辑需要确认当往来单位id工程标段ID结算状态为空时是否返回异常如果返回异常前端配合改造
if (bean.getUnitId() == null && bean.getProjectId() == null && bean.getSltStatus()== null){
}else {
list = sltAgreementInfoService.getSltAgreementInfo(bean);
}
//上面代码可以改造为
/*if(bean.getUnitId() != null || bean.getProjectId() != null || bean.getSltStatus()!= null){
list = sltAgreementInfoService.getSltAgreementInfo(bean);
}*/
List<AgreementInfo> list = sltAgreementInfoService.getSltAgreementInfo(bean);
return getDataTable(list);
}

View File

@ -258,6 +258,7 @@ public class SltAgreementInfoServiceImpl implements SltAgreementInfoService {
}
BigDecimal buyPrice = new BigDecimal(bean.getBuyPrice());
BigDecimal num = new BigDecimal(bean.getNum());
// 原价 x 数量
BigDecimal costs = buyPrice.multiply(num);
//计算租赁费用
/*BigDecimal costs = BigDecimal.ZERO;

View File

@ -117,11 +117,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<when test="sltStatus == '3'.toString()">
and sar.status = '1'
</when>
<otherwise>
</otherwise>
</choose>
ORDER BY bai.agreement_id desc
ORDER BY sltStatus,bai.agreement_id desc
</select>
<select id="getLeaseList" resultType="com.bonus.sgzb.base.api.domain.SltAgreementInfo">