退料申请表数据问题修改
This commit is contained in:
parent
8f541d2e3d
commit
1c7b74efc9
|
|
@ -229,7 +229,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
if (record.getOutNum() == null || record.getOutNum() < outNum) {
|
||||
record.setOutNum(0.00);
|
||||
}
|
||||
//先判断(ma_type 设备规格表)中的库存够不够出库的
|
||||
//判断(ma_type 设备规格表)中的库存够不够出库的
|
||||
MaType maType = leaseOutDetailsMapper.selectByTypeId(record);
|
||||
if (maType != null) {
|
||||
if (maType.getNum() == null || maType.getNum().compareTo(BigDecimal.valueOf(record.getOutNum())) < 0) {
|
||||
|
|
|
|||
|
|
@ -196,10 +196,9 @@ public class TmTaskServiceImpl implements TmTaskService {
|
|||
public int updateLeaseTaskAuditInfoCq(TmTask record) {
|
||||
int result = 0;
|
||||
if (StringUtils.isNotNull(record)) {
|
||||
// 内部审核
|
||||
// 管理员登录时审核
|
||||
// 先修改任务表
|
||||
result += tmTaskMapper.updateTmTaskAuditStatus(record);
|
||||
// 分公司审核
|
||||
|
||||
// 再审核领料任务信息表
|
||||
List<LeaseApplyInfo> leaseApplyInfoList = record.getLeaseApplyInfoList();
|
||||
if (CollUtil.isNotEmpty(leaseApplyInfoList)) {
|
||||
|
|
|
|||
|
|
@ -932,7 +932,7 @@
|
|||
and tt.task_status = #{taskStatus}
|
||||
</if>
|
||||
GROUP BY lai.id
|
||||
ORDER BY tt.task_status,tt.create_time
|
||||
ORDER BY tt.task_status,tt.create_time desc
|
||||
</select>
|
||||
<select id="getLeaseDetailByParentId" resultType="com.bonus.sgzb.app.domain.TmTask">
|
||||
SELECT
|
||||
|
|
@ -961,7 +961,7 @@
|
|||
and mtk.user_id = #{userId}
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
and su.user_name = #{userName}
|
||||
and su.user_name like concat('%', #{userName}, '%')
|
||||
</if>
|
||||
<if test="typeId != null and typeId != ''">
|
||||
and lad.type_id = #{typeId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue