修改指标占用xml

This commit is contained in:
hecan 2024-08-13 16:57:49 +08:00
parent 7f0d7280d5
commit 1f5dcbd24d
1 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
<?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">
<mapper namespace="com.hzya.frame.online.expense.controlindex.entity.ControlIndexEntity">
<resultMap id="get-ControlIndexEntity-result" type="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.grpU8.nxproof.controlindex.entity.ControlIndexEntity">
<result property="YSDH" column="YSDH" />
<result property="ZBID" column="ZBID" />
<result property="JE" column="JE" />
@ -16,7 +16,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
</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
YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
from T_ZCCW_CONTROLINDEX where ZT= #{ZT}
@ -24,7 +24,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
<!-- 查询最大单据编号+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
case when
len(isnull(max(right(DJBH,'4')), '0')+1)=2 then
@ -38,7 +38,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
</select>
<!-- 查询最大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
case when
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
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 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
from T_ZCCW_CONTROLINDEX where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
</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(
<if test="gsdm != null and gsdm !='' "> GSDM, </if>
<if test="kjnd != null and kjnd !='' "> KJND, </if>
@ -121,13 +121,13 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
)
</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}
where KJND = #{KJND} and YSDH=#{YSDH} and ZBID=${ZBID}
</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
FROM
T_ZCCW_CONTROLINDEX
@ -139,7 +139,7 @@ YSDH,ZBID,JE,KJND,ZT,ZCMC,ZBTBZT
</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
SET ZT = #{zt},
FlowCode = #{flowcode},