项目初始化

This commit is contained in:
liuhanqing
2025-12-10 10:04:11 +08:00
commit 3bf0bf5cf4
1202 changed files with 250574 additions and 0 deletions

View File

@@ -0,0 +1,177 @@
<?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.ruoyi.quartz.erp.mapper.ErpHcDSMapper">
<resultMap type="ErpHcDS" id="ErpHcResult">
<result property="reqCode" column="req_code" />
<result property="cStoreBillDetailId" column="c_store_bill_detail_id" />
<result property="trayCode" column="tray_code" />
<result property="cInvCode" column="c_inv_code" />
<result property="cInvName" column="c_inv_name" />
<result property="cInvStd" column="c_inv_std" />
<result property="cInvChart" column="c_inv_chart" />
<result property="cInvMaterial" column="c_inv_material" />
<result property="cUnit" column="c_unit" />
<result property="iQty" column="i_qty" />
<result property="cargoSpace" column="cargo_space" />
<result property="type" column="type" />
<result property="status" column="status" />
<result property="uuid" column="uuid" />
<result property="time" column="time" />
<result property="czType" column="cz_type" />
</resultMap>
<sql id="selectErpHcVo">
select req_code, c_store_bill_detail_id, tray_code, c_inv_code, c_inv_name, c_inv_std, c_inv_chart, c_inv_material, c_unit, i_qty, cargo_space, type, status, uuid ,time,cz_type from erp_hc_all
</sql>
<sql id="selectErpHcVo1">
select req_code, c_store_bill_detail_id, tray_code, c_inv_code, c_inv_name, c_inv_std, c_inv_chart, c_inv_material, c_unit, i_qty, cargo_space, type, status, uuid ,time,cz_type from erp_hc
</sql>
<sql id="selectErpHcVo2">
select distinct req_code,cz_type from erp_hc
</sql>
<sql id="selectErpHcVo3">
select req_code,
c_store_bill_detail_id,
c_inv_code,
c_inv_name,
c_inv_std,
c_inv_chart,
c_inv_material,
c_unit ,sum(i_qty) as i_qty from erp_hc
</sql>
<select id="selectErpHcList" parameterType="ErpHc" resultMap="ErpHcResult">
<include refid="selectErpHcVo"/>
<where>
<if test="reqCode != null and reqCode != ''"> and req_code = #{reqCode}</if>
<if test="cStoreBillDetailId != null and cStoreBillDetailId != ''"> and c_store_bill_detail_id = #{cStoreBillDetailId}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="cInvCode != null and cInvCode != ''"> and c_inv_code = #{cInvCode}</if>
<if test="cInvName != null and cInvName != ''"> and c_inv_name like concat('%', #{cInvName}, '%')</if>
<if test="cInvStd != null and cInvStd != ''"> and c_inv_std = #{cInvStd}</if>
<if test="cInvChart != null and cInvChart != ''"> and c_inv_chart = #{cInvChart}</if>
<if test="cInvMaterial != null and cInvMaterial != ''"> and c_inv_material = #{cInvMaterial}</if>
<if test="cUnit != null and cUnit != ''"> and c_unit = #{cUnit}</if>
<if test="iQty != null and iQty != ''"> and i_qty = #{iQty}</if>
<if test="cargoSpace != null and cargoSpace != ''"> and cargo_space = #{cargoSpace}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if>
<if test="time != null and time != ''"> and time like concat('%', #{time}, '%')</if>
</where>
</select>
<select id="selectErpHcList1" parameterType="ErpHc" resultMap="ErpHcResult">
<include refid="selectErpHcVo1"/>
<where>
<if test="reqCode != null and reqCode != ''"> and req_code = #{reqCode}</if>
<if test="cStoreBillDetailId != null and cStoreBillDetailId != ''"> and c_store_bill_detail_id = #{cStoreBillDetailId}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="cInvCode != null and cInvCode != ''"> and c_inv_code = #{cInvCode}</if>
<if test="cInvName != null and cInvName != ''"> and c_inv_name like concat('%', #{cInvName}, '%')</if>
<if test="cInvStd != null and cInvStd != ''"> and c_inv_std = #{cInvStd}</if>
<if test="cInvChart != null and cInvChart != ''"> and c_inv_chart = #{cInvChart}</if>
<if test="cInvMaterial != null and cInvMaterial != ''"> and c_inv_material = #{cInvMaterial}</if>
<if test="cUnit != null and cUnit != ''"> and c_unit = #{cUnit}</if>
<if test="iQty != null and iQty != ''"> and i_qty = #{iQty}</if>
<if test="cargoSpace != null and cargoSpace != ''"> and cargo_space = #{cargoSpace}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if>
<if test="time != null and time != ''"> and time like concat('%', #{time}, '%')</if>
</where>
</select>
<select id="selectErpHcByReqCode" parameterType="String" resultMap="ErpHcResult">
<include refid="selectErpHcVo"/>
where req_code = #{reqCode}
</select>
<select id="selectReqCodeByType" parameterType="String" resultMap="ErpHcResult">
<include refid="selectErpHcVo2"/>
where status=0 and type = #{type}
</select>
<select id="selectReqCodeByProductId" parameterType="String" resultMap="ErpHcResult">
<include refid="selectErpHcVo3"/>
where status=0 and type = #{type} and req_code = #{reqCode} group by req_code,
c_store_bill_detail_id,
c_inv_code,
c_inv_name,
c_inv_std,
c_inv_chart,
c_inv_material,
c_unit
</select>
<insert id="insertErpHc" parameterType="ErpHcDS">
insert into erp_hc
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reqCode != null">req_code,</if>
<if test="cStoreBillDetailId != null">c_store_bill_detail_id,</if>
<if test="trayCode != null">tray_code,</if>
<if test="cInvCode != null">c_inv_code,</if>
<if test="cInvName != null">c_inv_name,</if>
<if test="cInvStd != null">c_inv_std,</if>
<if test="cInvChart != null">c_inv_chart,</if>
<if test="cInvMaterial != null">c_inv_material,</if>
<if test="cUnit != null">c_unit,</if>
<if test="iQty != null">i_qty,</if>
<if test="cargoSpace != null">cargo_space,</if>
<if test="type != null">type,</if>
<if test="status != null">status,</if>
<if test="uuid != null">uuid,</if>
<if test="time != null">time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reqCode != null">#{reqCode},</if>
<if test="cStoreBillDetailId != null">#{cStoreBillDetailId},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="cInvCode != null">#{cInvCode},</if>
<if test="cInvName != null">#{cInvName},</if>
<if test="cInvStd != null">#{cInvStd},</if>
<if test="cInvChart != null">#{cInvChart},</if>
<if test="cInvMaterial != null">#{cInvMaterial},</if>
<if test="cUnit != null">#{cUnit},</if>
<if test="iQty != null">#{iQty},</if>
<if test="cargoSpace != null">#{cargoSpace},</if>
<if test="type != null">#{type},</if>
<if test="status != null">#{status},</if>
<if test="uuid != null">#{uuid},</if>
<if test="time != null">#{time},</if>
</trim>
</insert>
<update id="updateErpHc" parameterType="ErpHc">
update erp_hc
<trim prefix="SET" suffixOverrides=",">
<if test="cStoreBillDetailId != null">c_store_bill_detail_id = #{cStoreBillDetailId},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="cInvCode != null">c_inv_code = #{cInvCode},</if>
<if test="cInvName != null">c_inv_name = #{cInvName},</if>
<if test="cInvStd != null">c_inv_std = #{cInvStd},</if>
<if test="cInvChart != null">c_inv_chart = #{cInvChart},</if>
<if test="cInvMaterial != null">c_inv_material = #{cInvMaterial},</if>
<if test="cUnit != null">c_unit = #{cUnit},</if>
<if test="iQty != null">i_qty = #{iQty},</if>
<if test="cargoSpace != null">cargo_space = #{cargoSpace},</if>
<if test="type != null">type = #{type},</if>
<if test="status != null">status = #{status},</if>
<if test="uuid != null">uuid = #{uuid},</if>
<if test="time != null">time = #{time},</if>
</trim>
where req_code = #{reqCode}
</update>
<delete id="deleteErpHcByReqCode" parameterType="String">
delete from erp_hc where req_code = #{reqCode}
</delete>
<delete id="deleteErpHcByReqCodes" parameterType="String">
delete from erp_hc where req_code in
<foreach item="reqCode" collection="array" open="(" separator="," close=")">
#{reqCode}
</foreach>
</delete>
</mapper>