2025-05-13 15:26:39 +08:00
|
|
|
<?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.cim.idm.dao.CostCenterDao">
|
|
|
|
|
|
|
|
<select id="getCostCenter" resultType="com.cim.idm.model.CostCenter">
|
|
|
|
select id, cost_code costCode, cost_name costName, erp_factory erpFactory, department, division
|
|
|
|
from cost_center
|
|
|
|
</select>
|
2025-05-19 09:00:43 +08:00
|
|
|
|
|
|
|
<select id="getUserInfo" resultType="java.util.Map">
|
|
|
|
SELECT USERID, USERNAME FROM USERINFO
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<update id="updatePacking">
|
|
|
|
UPDATE MATERIALPACKING SET
|
|
|
|
SALESHIPREQUESTNAME = #{SALESHIPREQUESTNAME, jdbcType=VARCHAR},
|
|
|
|
SALESHIPREQUESTDETAILNAME = #{SALESHIPREQUESTDETAILNAME, jdbcType=VARCHAR},
|
2025-05-20 15:28:32 +08:00
|
|
|
POSTSTATUS = #{POSTSTATUS, jdbcType=VARCHAR},
|
|
|
|
OLDSALESHIPREQUESTNAME = #{saleshiprequestname, jdbcType=VARCHAR},
|
|
|
|
OLDSALESHIPREQUESTDETAILNAME = #{saleShipRequestDetailName, jdbcType=VARCHAR}
|
2025-05-19 09:00:43 +08:00
|
|
|
WHERE MATERIALPACKINGNAME = #{MATERIALPACKINGNAME, jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<insert id="insertPackingChenk">
|
|
|
|
insert into MATERIALPACKINGCHECK(MATERIALPACKINGNAME,SALESHIPREQUESTNAME,
|
|
|
|
SALESHIPREQUESTDETAILNAME,SITENAME,IS_CHECK, MATERIALSPECNAME,
|
2025-05-20 15:28:32 +08:00
|
|
|
CHARGE,PHASE,CUSTOMNO,CAREER_ASSISTANCE,POSTSTATUS, MAIN_ID, OLDSALESHIPREQUESTNAME,OLDSALESHIPREQUESTDETAILNAME)
|
2025-05-19 09:00:43 +08:00
|
|
|
values(#{MATERIALPACKINGNAME, jdbcType=VARCHAR}, #{SALESHIPREQUESTNAME, jdbcType=VARCHAR},
|
|
|
|
#{SALESHIPREQUESTDETAILNAME, jdbcType=VARCHAR}, #{SITENAME, jdbcType=VARCHAR}, 'N',
|
|
|
|
#{materialSpecName, jdbcType=VARCHAR}, #{charge, jdbcType=VARCHAR}, #{phase, jdbcType=VARCHAR},
|
2025-05-20 15:28:32 +08:00
|
|
|
#{customno, jdbcType=VARCHAR},#{careerAssistance, jdbcType=VARCHAR},
|
|
|
|
#{POSTSTATUS, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR},#{saleshiprequestname, jdbcType=VARCHAR},#{saleShipRequestDetailName, jdbcType=VARCHAR})
|
2025-05-19 09:00:43 +08:00
|
|
|
</insert>
|
2025-05-20 15:28:32 +08:00
|
|
|
|
|
|
|
<insert id="insertPackingChenkMain">
|
|
|
|
insert into MATERIALPACKINGCHECK_MAIN(ID, CAREER_ASSISTANCE, STATUS, SALESHIPREQUESTNAME, SALESHIPREQUESTDETAILNAME)
|
|
|
|
values(#{id, jdbcType=VARCHAR}, #{careerAssistance, jdbcType=VARCHAR}, #{status, jdbcType=VARCHAR},
|
|
|
|
#{saleshiprequestname, jdbcType=VARCHAR}, #{saleshiprequestdetailname, jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateCheckMain" parameterType="java.lang.String">
|
|
|
|
update MATERIALPACKINGCHECK_MAIN set STATUS = '1'
|
|
|
|
where ID = #{mainId, jdbcType=VARCHAR}
|
|
|
|
</update>
|
2025-05-13 15:26:39 +08:00
|
|
|
</mapper>
|