Browse Source

库存地点变更增加字段

master
hp 3 years ago
parent
commit
f37184a3ec
  1. 5
      anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmvehiclegression/ScmVehicleGressionPageVo.java
  2. 61
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionMapper.xml

5
anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmvehiclegression/ScmVehicleGressionPageVo.java

@ -44,4 +44,9 @@ public class ScmVehicleGressionPageVo implements Vo {
@ApiModelProperty("是否显示临时出门证按钮 审批流程完成后并且未上传现场照片时显示") @ApiModelProperty("是否显示临时出门证按钮 审批流程完成后并且未上传现场照片时显示")
private boolean showDownloadBtn; private boolean showDownloadBtn;
@ApiModelProperty("流程定义id")
private String procDefId;
@ApiModelProperty("流程实例id")
private String procInstId;
} }

61
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionMapper.xml

@ -23,16 +23,18 @@
<select id="selectCarTransferList" <select id="selectCarTransferList"
resultType="com.yxt.anrui.scm.api.scmvehiclegression.ScmVehicleGressionPageVo"> resultType="com.yxt.anrui.scm.api.scmvehiclegression.ScmVehicleGressionPageVo">
SELECT svg.sid, SELECT svg.sid,
svg.vinNo as vin, svg.vinNo as vin,
svg.applicantNo as applyId, svg.applicantNo as applyId,
if(length(svg.nodeState) > 0, nodeState, '待提交') as `state`, if(length(svg.nodeState) > 0, nodeState, '待提交') as `state`,
svg.applicantName as applyName, svg.applicantName as applyName,
svg.applicantDate as applyDate, svg.applicantDate as applyDate,
svg.applicantFunds as applyPrice, svg.applicantFunds as applyPrice,
svg.temporaryCard as downloadUrl, svg.temporaryCard as downloadUrl,
svg.location, svg.location,
svg.targetLocation, svg.targetLocation,
svg.operator svg.operator,
svg.procDefId,
svg.procInstId
FROM scm_vehicle_gression svg FROM scm_vehicle_gression svg
<where> <where>
${ew.sqlSegment} ${ew.sqlSegment}
@ -43,26 +45,26 @@
<select id="getCarTransferList" <select id="getCarTransferList"
resultType="com.yxt.anrui.scm.api.scmvehiclegression.AppScmVehicleGressionPageVo"> resultType="com.yxt.anrui.scm.api.scmvehiclegression.AppScmVehicleGressionPageVo">
SELECT svg.sid, SELECT svg.sid,
svg.vinNo as vin, svg.vinNo as vin,
svg.applicantNo as applyId, svg.applicantNo as applyId,
if(length(svg.nodeState) > 0, nodeState, '待提交') as `state`, if(length(svg.nodeState) > 0, nodeState, '待提交') as `state`,
if(length(svg.nodeState) > 0, false, true) as showDetectBtn, if(length(svg.nodeState) > 0, false, true) as showDetectBtn,
if(length(svg.nodeState) > 0, false, true) as showUpdateBtn, if(length(svg.nodeState) > 0, false, true) as showUpdateBtn,
if(length(svg.nodeState) > 0, true, false) as showUploadBtn, if(length(svg.nodeState) > 0, true, false) as showUploadBtn,
if(length(svg.nodeState) > 0, true, false) as showDownloadBtn, if(length(svg.nodeState) > 0, true, false) as showDownloadBtn,
svg.applicantName as applyName, svg.applicantName as applyName,
svg.applicantDate as applyDate, svg.applicantDate as applyDate,
svg.applicantFunds as applyPrice, svg.applicantFunds as applyPrice,
svg.taskId, svg.taskId,
svg.procInstId svg.procInstId
FROM scm_vehicle_gression svg FROM scm_vehicle_gression svg
<where> <where>
${ew.sqlSegment} ${ew.sqlSegment}
<if test="names != '' and names != null"> <if test="names != '' and names != null">
and concat(svg.applicantNo and concat(svg.applicantNo
, svg.vinNo) LIKE concat('%' , svg.vinNo) LIKE concat('%'
, #{names} , #{names}
, '%') , '%')
</if> </if>
</where> </where>
ORDER BY id DESC ORDER BY id DESC
@ -99,11 +101,11 @@
</select> </select>
<select id="selectNum" resultType="java.lang.String"> <select id="selectNum" resultType="java.lang.String">
select RIGHT(applicantNo, 4) select RIGHT (applicantNo, 4)
from scm_vehicle_gression from scm_vehicle_gression
where applicantNo LIKE concat(#{bill}, '%') where applicantNo LIKE concat(#{bill}, '%')
order by id desc order by id desc
limit 1 limit 1
</select> </select>
<select id="getlastTimeEqual" resultType="com.yxt.anrui.scm.api.scmvehiclegression.ScmVehicleGressionVo"> <select id="getlastTimeEqual" resultType="com.yxt.anrui.scm.api.scmvehiclegression.ScmVehicleGressionVo">
@ -112,15 +114,14 @@
where vinNo = #{vinNo} where vinNo = #{vinNo}
and targetLocationSid = #{targetLocationSid} and targetLocationSid = #{targetLocationSid}
and LENGTH(nodeState) > 0 and LENGTH(nodeState) > 0
order by id desc order by id desc limit 1
limit 1
</select> </select>
<update id="updateFlowFiled"> <update id="updateFlowFiled">
UPDATE scm_vehicle_gression UPDATE scm_vehicle_gression
SET nodeState=#{nodeState} SET nodeState=#{nodeState}
, nodeId=#{taskDefKey} , nodeId=#{taskDefKey}
<if test="procDefId != null and procDefId != ''"> <if test="procDefId != null and procDefId != ''">
, procDefId=#{procDefId} , procDefId=#{procDefId}
</if> </if>

Loading…
Cancel
Save