安全工器具的协议包含机具,不能发布
This commit is contained in:
parent
c6365050e3
commit
e495597f4e
|
|
@ -382,4 +382,7 @@ public class LeaseApplyInfo extends BaseEntity{
|
|||
|
||||
@ApiModelProperty(value = "附件配件类四级类型id集合")
|
||||
private Set<String> typeIdSet;
|
||||
|
||||
@ApiModelProperty(value = "是否是安全工机具(0:否,1:是)")
|
||||
private Integer isSafeType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,4 +25,8 @@ public class AgreementVo implements Serializable {
|
|||
private String signTime;
|
||||
|
||||
|
||||
/** 是否是安全工机具协议(0:不是,1:是)*/
|
||||
private Integer isSafeType;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="getAgreementInfoById" resultType="com.bonus.material.common.domain.vo.AgreementVo">
|
||||
SELECT agreement_id AS agreementId,
|
||||
agreement_code AS agreementCode,
|
||||
is_slt AS isSlt
|
||||
is_slt AS isSlt,
|
||||
is_safe_type AS isSafeType
|
||||
FROM bm_agreement_info
|
||||
WHERE unit_id = #{unitId} AND project_id = #{projectId} AND status = '1'
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
<result property="nextNodeId" column="next_node_id"/>
|
||||
<result property="nodeId" column="node_id"/>
|
||||
<result property="recordId" column="record_id"/>
|
||||
<result property="isSafeType" column="is_safe_type"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.bonus.material.lease.domain.LeaseApplyDetails" id="LeaseApplyDetailsResult">
|
||||
|
|
@ -494,6 +495,7 @@
|
|||
lai.unit_id,lai.project_id,bu.unit_name, bp.pro_name, tt.task_status as taskStatus,
|
||||
lai.supplier_time as supplierTime,
|
||||
lai.supplier_place as supplierPlace,
|
||||
bai.is_safe_type as isSafeType,
|
||||
case tt.task_status
|
||||
when 0 then '待审核'
|
||||
when 1 then '待审核'
|
||||
|
|
@ -512,6 +514,7 @@
|
|||
left join tm_task tt on lai.task_id = tt.task_id
|
||||
left join lease_apply_details lad on lai.id = lad.parent_id
|
||||
left join tm_task_agreement tta on lai.task_id = tta.task_id
|
||||
left join bm_agreement_info bai on tta.agreement_id = bai.agreement_id
|
||||
left join bm_unit bu on bu.unit_id = lai.unit_id
|
||||
left join bm_project bp on bp.pro_id = lai.project_id
|
||||
left join sys_dept sd on sd.dept_id = bp.imp_unit
|
||||
|
|
@ -752,6 +755,7 @@
|
|||
mt.type_name AS typeName,
|
||||
mt2.type_id AS thirdTypeId,
|
||||
mt2.type_name AS maTypeName,
|
||||
mt.jiju_type as jijuType,
|
||||
CASE
|
||||
mt.manage_type
|
||||
WHEN 0 THEN
|
||||
|
|
@ -1196,6 +1200,7 @@
|
|||
<select id="selectPendingOutNum" resultType="com.bonus.material.lease.domain.LeaseApplyDetails">
|
||||
SELECT
|
||||
#{typeId} as typeId,
|
||||
mt.jiju_type as jiJuType,
|
||||
COALESCE(SUM(combined.pendingOutNum), 0) as pendingOutNum,
|
||||
CASE mt.manage_type
|
||||
WHEN 0 THEN
|
||||
|
|
|
|||
|
|
@ -537,7 +537,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
IFNULL(m.storage_num, 0)
|
||||
END as storage_num,
|
||||
m.company_id as companyId,
|
||||
IFNULL(subquery1.pendingOutNum,0) as pendingOutNum
|
||||
IFNULL(subquery1.pendingOutNum,0) as pendingOutNum,
|
||||
m.jiju_type
|
||||
from ma_type m
|
||||
left join (SELECT mt.type_id,
|
||||
mt2.type_name AS typeName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue