修改指标占用xml
This commit is contained in:
parent
7f0d7280d5
commit
1f5dcbd24d
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<mapper namespace="com.hzya.frame.grpU8.nxproof.controlindex.dao.impl.ControlIndexDaoImpl">
|
||||||
<resultMap id="get-ControlIndexEntity-result" type="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<resultMap id="get-ControlIndexEntity-result" type="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
<result property="YSDH" column="YSDH" />
|
<result property="YSDH" column="YSDH" />
|
||||||
<result property="ZBID" column="ZBID" />
|
<result property="ZBID" column="ZBID" />
|
||||||
<result property="JE" column="JE" />
|
<result property="JE" column="JE" />
|
||||||
|
@ -16,7 +16,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!--根据状态查询数据-->
|
<!--根据状态查询数据-->
|
||||||
<select id="ControlIndexEntity_list_base" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<select id="ControlIndexEntity_list_base" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
select
|
select
|
||||||
YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
from T_ZCCW_CONTROLINDEX where ZT= #{ZT}
|
from T_ZCCW_CONTROLINDEX where ZT= #{ZT}
|
||||||
|
@ -24,7 +24,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
|
|
||||||
|
|
||||||
<!-- 查询最大单据编号+1-->
|
<!-- 查询最大单据编号+1-->
|
||||||
<select id="ControlIndexEntity_list_base_djbhMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<select id="ControlIndexEntity_list_base_djbhMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
select
|
select
|
||||||
case when
|
case when
|
||||||
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
|
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
|
||||||
|
@ -38,7 +38,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询最大mlid+1-->
|
<!-- 查询最大mlid+1-->
|
||||||
<!--<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<!--<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
select
|
select
|
||||||
case when
|
case when
|
||||||
length(ifnull(max(right(mlid,'4')), '0')+1)=2 then
|
length(ifnull(max(right(mlid,'4')), '0')+1)=2 then
|
||||||
|
@ -50,13 +50,13 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
else concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),ifnull(max(right(mlid,'4')), '0')+1) end
|
else concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),ifnull(max(right(mlid,'4')), '0')+1) end
|
||||||
as mlId from T_ZCCW_CONTROLINDEX where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%')
|
as mlId from T_ZCCW_CONTROLINDEX where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%')
|
||||||
</select>-->
|
</select>-->
|
||||||
<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<select id="ControlIndexEntity_list_base_mlidMax" resultMap="get-ControlIndexEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
select (isnull(max(MLID),concat(substring(#{djdate},0,7),0000)) + 1) as mlId
|
select (isnull(max(MLID),concat(substring(#{djdate},0,7),0000)) + 1) as mlId
|
||||||
from T_ZCCW_CONTROLINDEX where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
|
from T_ZCCW_CONTROLINDEX where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="ControlIndexEntity_insert" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<insert id="ControlIndexEntity_insert" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
insert into T_ZCCW_CONTROLINDEX(
|
insert into T_ZCCW_CONTROLINDEX(
|
||||||
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
|
||||||
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
<if test="kjnd != null and kjnd !='' "> KJND, </if>
|
||||||
|
@ -121,13 +121,13 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="ControlIndexEntity_update" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<update id="ControlIndexEntity_update" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
update T_ZCCW_CONTROLINDEX set ZBTBZT= #{ZBTBZT}
|
update T_ZCCW_CONTROLINDEX set ZBTBZT= #{ZBTBZT}
|
||||||
where KJND = #{KJND} and YSDH=#{YSDH} and ZBID=${ZBID}
|
where KJND = #{KJND} and YSDH=#{YSDH} and ZBID=${ZBID}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!--删除,用于单据删除时使用-->
|
<!--删除,用于单据删除时使用-->
|
||||||
<delete id="ControlIndexEntity_delete" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<delete id="ControlIndexEntity_delete" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
DELETE
|
DELETE
|
||||||
FROM
|
FROM
|
||||||
T_ZCCW_CONTROLINDEX
|
T_ZCCW_CONTROLINDEX
|
||||||
|
@ -139,7 +139,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!--修改 用于单据送审和审批时使用-->
|
<!--修改 用于单据送审和审批时使用-->
|
||||||
<update id="ControlIndexEntity_update_songs" parameterType="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
|
<update id="ControlIndexEntity_update_songs" parameterType="com.hzya.frame.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
|
||||||
UPDATE T_ZCCW_CONTROLINDEX
|
UPDATE T_ZCCW_CONTROLINDEX
|
||||||
SET ZT = #{zt},
|
SET ZT = #{zt},
|
||||||
FlowCode = #{flowcode},
|
FlowCode = #{flowcode},
|
||||||
|
|
Loading…
Reference in New Issue