|
@@ -3,18 +3,24 @@
|
|
|
<mapper namespace="org.jeecg.modules.capacity.mapper.SyCapacityControlMapper">
|
|
|
|
|
|
<insert id="insert" parameterType="org.jeecg.modules.capacity.entity.SyCapacityControl">
|
|
|
- insert sy_capacity_control (supplier,supplier_code,capacity_quota,working_hours,capacity_section,supplier_state,remarks,state)
|
|
|
+ insert sy_capacity_control (supplier,supplier_code,capacity_quota,working_hours,capacity_section,supplier_state,remarks,state,cven_code_type)
|
|
|
values (#{entity.supplier},#{entity.supplierCode},#{entity.capacityQuota},#{entity.workingHours},#{entity.capacitySection},
|
|
|
- #{entity.supplierState},#{entity.remarks},#{entity.state});
|
|
|
+ #{entity.supplierState},#{entity.remarks},#{entity.state},#{entity.cvenCodeType});
|
|
|
</insert>
|
|
|
|
|
|
<select id="query" resultType="org.jeecg.modules.capacity.entity.SyCapacityControl">
|
|
|
select
|
|
|
- id,supplier,supplier_code,capacity_quota,working_hours,capacity_section,supplier_state,remarks,state from sy_capacity_control
|
|
|
+ id,supplier,supplier_code,capacity_quota,working_hours,capacity_section,supplier_state,remarks,state,cven_code_type from sy_capacity_control
|
|
|
where state != '-1'
|
|
|
<if test="supplier != null">
|
|
|
and supplier=#{supplier}
|
|
|
</if>
|
|
|
+ <if test="cvenCodeType != null">
|
|
|
+ and cven_code_type=#{cvenCodeType}
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ and supplier_state=#{state}
|
|
|
+ </if>
|
|
|
order by id desc
|
|
|
offset #{pageIndex} rows
|
|
|
fetch next #{pageSize} rows only
|