工地直转查询修改
This commit is contained in:
parent
39c42e931f
commit
0995bd6cb3
|
|
@ -180,7 +180,7 @@ public class WorkSiteDirectManageController extends BaseController {
|
||||||
backApplyInfo.setCode(tcode);
|
backApplyInfo.setCode(tcode);
|
||||||
//创建退料任务(tm_task)
|
//创建退料任务(tm_task)
|
||||||
backApplyInfo.setTaskType(36);
|
backApplyInfo.setTaskType(36);
|
||||||
backApplyInfo.setTaskStatus("37");
|
backApplyInfo.setTaskStatus("40");
|
||||||
int res5 = workSiteDirectManageService.insertTmTaskByBackInfo(backApplyInfo);
|
int res5 = workSiteDirectManageService.insertTmTaskByBackInfo(backApplyInfo);
|
||||||
if (res5 == 0) {
|
if (res5 == 0) {
|
||||||
return AjaxResult.error("退料任务新建失败");
|
return AjaxResult.error("退料任务新建失败");
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ public interface BackRecordMapper {
|
||||||
*/
|
*/
|
||||||
List<BackRecord> getBackRecordList(BackRecord bean);
|
List<BackRecord> getBackRecordList(BackRecord bean);
|
||||||
|
|
||||||
int insertBcd(BackApplyInfo backApplyInfo);
|
|
||||||
|
|
||||||
int insertCheckDetails(BackApplyInfo backApplyInfo);
|
int insertCheckDetails(BackApplyInfo backApplyInfo);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,6 @@
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.sgzb.material.mapper.BackRecordMapper">
|
<mapper namespace="com.bonus.sgzb.material.mapper.BackRecordMapper">
|
||||||
<insert id="insertBcd">
|
|
||||||
|
|
||||||
</insert>
|
|
||||||
<insert id="insertCheckDetails">
|
<insert id="insertCheckDetails">
|
||||||
insert into back_check_details
|
insert into back_check_details
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -390,6 +390,27 @@
|
||||||
LEFT JOIN bm_project_lot bpl1 ON bpl1.lot_id = bai1.project_id
|
LEFT JOIN bm_project_lot bpl1 ON bpl1.lot_id = bai1.project_id
|
||||||
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
||||||
LEFT JOIN bm_unit_info bui1 ON bui1.unit_id = bai1.unit_id
|
LEFT JOIN bm_unit_info bui1 ON bui1.unit_id = bai1.unit_id
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
<if test="record.keyWord != null and record.keyWord != ''">
|
||||||
|
and (bpl.lot_name like concat('%', #{keyWord}, '%') or
|
||||||
|
bui.unit_name like concat('%', #{keyWord}, '%'))
|
||||||
|
</if>
|
||||||
|
<if test="record.lotId != null and record.lotId != ''">
|
||||||
|
and bpl.lot_id = #{record.lotId}
|
||||||
|
</if>
|
||||||
|
<if test="record.unitId != null and record.unitId != ''">
|
||||||
|
and bui.unitId = #{record.unitId}
|
||||||
|
</if>
|
||||||
|
<if test="record.backMan != null and record.backMan != ''">
|
||||||
|
and dai.back_man like concat('%', #{backMan}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="record.backPhone != null and record.backPhone != ''">
|
||||||
|
and dai.back_phone like concat('%', #{backPhone}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="record.status != null and record.status != ''">
|
||||||
|
and dai.status = #{status}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getDirectApplyInfoById" resultType="com.bonus.sgzb.base.api.domain.DirectApplyInfo">
|
<select id="getDirectApplyInfoById" resultType="com.bonus.sgzb.base.api.domain.DirectApplyInfo">
|
||||||
select * from direct_apply_info where id = #{id}
|
select * from direct_apply_info where id = #{id}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue