This commit is contained in:
parent
e42205a38f
commit
c01136e183
|
|
@ -529,6 +529,12 @@ public class BackApplyInfoController extends BaseController {
|
||||||
return backApplyInfoService.uploadSort(bean);
|
return backApplyInfoService.uploadSort(bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "删除装卸单")
|
||||||
|
@PostMapping("/delHandlingOrder")
|
||||||
|
public AjaxResult delHandlingOrder(@RequestBody HandlingOrder bean) {
|
||||||
|
return backApplyInfoService.delHandlingOrder(bean);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** -------装卸单结束------- */
|
/** -------装卸单结束------- */
|
||||||
|
|
|
||||||
|
|
@ -500,4 +500,11 @@ public interface BackApplyInfoMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<SltAgreementInfo> getClzUserList(BackApplyInfo applyInfo);
|
List<SltAgreementInfo> getClzUserList(BackApplyInfo applyInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除装卸单
|
||||||
|
* @param bean
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int delHandlingOrder(HandlingOrder bean);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -235,5 +235,12 @@ public interface IBackApplyInfoService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
AjaxResult submitBzBackApply(BackApplyInfo backApplyInfo);
|
AjaxResult submitBzBackApply(BackApplyInfo backApplyInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除装卸单
|
||||||
|
* @param bean
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
AjaxResult delHandlingOrder(HandlingOrder bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2262,6 +2262,22 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
|
||||||
return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), HttpCodeEnum.FAIL.getMsg());
|
return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), HttpCodeEnum.FAIL.getMsg());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult delHandlingOrder(HandlingOrder bean) {
|
||||||
|
try {
|
||||||
|
int res = backApplyInfoMapper.delHandlingOrder(bean);
|
||||||
|
if (res > 0){
|
||||||
|
return AjaxResult.success("删除成功");
|
||||||
|
} else {
|
||||||
|
return AjaxResult.error("删除失败");
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("系统错误, " + e.getMessage());
|
||||||
|
return AjaxResult.error("删除失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理班组退料结算协议
|
* 处理班组退料结算协议
|
||||||
* @param record
|
* @param record
|
||||||
|
|
|
||||||
|
|
@ -840,6 +840,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
delete from back_apply_details where parent_id = #{parentId} and type_id = #{typeId}
|
delete from back_apply_details where parent_id = #{parentId} and type_id = #{typeId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<update id="delHandlingOrder">
|
||||||
|
update bm_handling_order set is_active = '0' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 设置审批人为默认的李勇 防止代码冲突-->
|
<!-- 设置审批人为默认的李勇 防止代码冲突-->
|
||||||
<select id="getDirectAuditBy" resultType="Long">
|
<select id="getDirectAuditBy" resultType="Long">
|
||||||
select
|
select
|
||||||
|
|
@ -1092,7 +1096,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bho.type like concat('%',#{keyWord},'%')
|
bho.type like concat('%',#{keyWord},'%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
ORDER BY bho.update_time desc,bho.sort desc
|
ORDER BY CASE WHEN bho.sort IS NULL THEN 0 ELSE 1 END,bho.update_time desc,bho.sort desc,bho.reserve_date desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectSort" resultType="java.lang.Integer">
|
<select id="selectSort" resultType="java.lang.Integer">
|
||||||
SELECT count(*)
|
SELECT count(*)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue