highway
A0010407 1 year ago
parent 8e6c8bcfa2
commit ab903aae71

@ -77,6 +77,17 @@ public class BaseShiftsT extends BaseEntity {
@Excel(name = "工厂编码") @Excel(name = "工厂编码")
private String siteCode; private String siteCode;
/** 删除标志 */
@Excel(name = "删除标志")
private String delFlag;
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getDelFlag() {
return delFlag;
}
public void setShiftId(String shiftId) { public void setShiftId(String shiftId) {
this.shiftId = shiftId; this.shiftId = shiftId;
} }
@ -202,6 +213,7 @@ public class BaseShiftsT extends BaseEntity {
.append("enterpriseCode", getEnterpriseCode()) .append("enterpriseCode", getEnterpriseCode())
.append("siteId", getSiteId()) .append("siteId", getSiteId())
.append("siteCode", getSiteCode()) .append("siteCode", getSiteCode())
.append("delFlag", getDelFlag())
.toString(); .toString();
} }
} }

@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="enterpriseCode" column="Enterprise_Code" /> <result property="enterpriseCode" column="Enterprise_Code" />
<result property="siteId" column="Site_Id" /> <result property="siteId" column="Site_Id" />
<result property="siteCode" column="Site_Code" /> <result property="siteCode" column="Site_Code" />
<result property="delFlag" column="del_flag" />
</resultMap> </resultMap>
<sql id="selectBaseShiftsTVo"> <sql id="selectBaseShiftsTVo">
select Shift_Id, Shift_Code, Shift_Desc, Shift_Desc_Global, Shift_Desc_Extended, Shift_Start_Time, Shift_End_Time, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code from base_shifts_t select Shift_Id, Shift_Code, Shift_Desc, Shift_Desc_Global, Shift_Desc_Extended, Shift_Start_Time, Shift_End_Time, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code,del_flag from base_shifts_t
</sql> </sql>
<select id="selectBaseShiftsTList" parameterType="BaseShiftsT" resultMap="BaseShiftsTResult"> <select id="selectBaseShiftsTList" parameterType="BaseShiftsT" resultMap="BaseShiftsTResult">
@ -45,12 +46,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if> <if test="enterpriseCode != null and enterpriseCode != ''"> and Enterprise_Code = #{enterpriseCode}</if>
<if test="siteId != null and siteId != ''"> and Site_Id = #{siteId}</if> <if test="siteId != null and siteId != ''"> and Site_Id = #{siteId}</if>
<if test="siteCode != null and siteCode != ''"> and Site_Code = #{siteCode}</if> <if test="siteCode != null and siteCode != ''"> and Site_Code = #{siteCode}</if>
and del_flag = '0'
</where> </where>
</select> </select>
<select id="selectBaseShiftsTByShiftId" parameterType="String" resultMap="BaseShiftsTResult"> <select id="selectBaseShiftsTByShiftId" parameterType="String" resultMap="BaseShiftsTResult">
<include refid="selectBaseShiftsTVo"/> <include refid="selectBaseShiftsTVo"/>
where Shift_Id = #{shiftId} where Shift_Id = #{shiftId}
and del_flag = '0'
</select> </select>
<insert id="insertBaseShiftsT" parameterType="BaseShiftsT"> <insert id="insertBaseShiftsT" parameterType="BaseShiftsT">
@ -115,16 +118,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where Shift_Id = #{shiftId} where Shift_Id = #{shiftId}
</update> </update>
<delete id="deleteBaseShiftsTByShiftId" parameterType="String"> <update id="deleteBaseShiftsTByShiftId" parameterType="String">
delete from base_shifts_t where Shift_Id = #{shiftId} update base_shifts_t
</delete> set del_flag = '1'
where Shift_Id = #{shiftId}
</update>
<delete id="deleteBaseShiftsTByShiftIds" parameterType="String"> <update id="deleteBaseShiftsTByShiftIds" parameterType="String">
delete from base_shifts_t where Shift_Id in update base_shifts_t
set del_flag = '1'
where Shift_Id in
<foreach item="shiftId" collection="array" open="(" separator="," close=")"> <foreach item="shiftId" collection="array" open="(" separator="," close=")">
#{shiftId} #{shiftId}
</foreach> </foreach>
</delete> </update>
<!-- <select id="queryAllStartTime" parameterType="String" resultMap="BaseShiftsTResult">--> <!-- <select id="queryAllStartTime" parameterType="String" resultMap="BaseShiftsTResult">-->
<!-- select--> <!-- select-->
@ -134,12 +141,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select shift_desc select shift_desc
from base_shifts_t from base_shifts_t
where shift_desc = #{shiftDesc} where shift_desc = #{shiftDesc}
and del_flag = '0'
</select> </select>
<select id="checkCodeUnique" parameterType="BaseShiftsT" resultType ="java.lang.String"> <select id="checkCodeUnique" parameterType="BaseShiftsT" resultType ="java.lang.String">
select shift_code select shift_code
from base_shifts_t from base_shifts_t
where shift_code = #{shiftCode} where shift_code = #{shiftCode}
and del_flag = '0'
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save