2025-01-09 18:29:48 +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.chanko.yunxi.mes.module.heli.dal.mysql.bdgzsomthing.bdgzsomthingMapper">
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
|
|
|
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
|
|
|
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
|
|
|
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updatebdgzsomthingbyid" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET yesorno = '1' , nowtime =#{nowtime}
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updatebdgzsomthingbyidok" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET yesorno = '1' , nowtime =#{nowtime},attr4='1'
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updatayesterday" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
WHERE thingname IN ('设计任务到期', '装配任务到期', '生产任务到期', '质检任务到期前')
|
|
|
|
|
and attr4='0'
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updatebdgzsomthingbyupok" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.storagelogNow.StorageLogNowDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
WHERE attr3=#{id} and showname=#{createTime}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateok" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
<if test="attr12 != null and attr12 != ''">,attr12 = #{attr12}</if>
|
|
|
|
|
WHERE attr3 = #{attr3} and thingname=#{thingname}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateokone" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
WHERE attr3= #{attr3} and thingname=#{thingname}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="deleteOrder" parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
WHERE attr3=#{attr3} and attr4='0'
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="deletebdgzsByThings" parameterType="java.lang.String">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1'
|
|
|
|
|
WHERE things=#{things} and attr4 = '0'
|
|
|
|
|
</update>
|
|
|
|
|
<update id="deleteByIdNew" parameterType="java.lang.Long">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '1' ,attr12 = '1'
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
2025-02-08 16:55:20 +08:00
|
|
|
|
<update id="deleteByIdNew1" parameterType="java.lang.Long">
|
|
|
|
|
UPDATE dbzz_table
|
|
|
|
|
SET attr4 = '0',attr12 = '1'
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
2025-01-09 18:29:48 +08:00
|
|
|
|
<select id="selecteqint"
|
|
|
|
|
parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO"
|
|
|
|
|
resultType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
|
|
|
|
|
select * from dbzz_table where showname=#{showname} and attr3=#{attr3} and attr4='0' and click=#{click}
|
|
|
|
|
and dborgz=#{dborgz}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selecteqintq"
|
|
|
|
|
parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO"
|
|
|
|
|
resultType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
|
|
|
|
|
select * from dbzz_table where showname=#{showname} and attr3=#{attr3} and attr4='0' and click=#{click}
|
|
|
|
|
and dborgz=#{dborgz} and things=#{things}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selecteqintone"
|
|
|
|
|
parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO"
|
|
|
|
|
resultType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
|
|
|
|
|
select * from dbzz_table
|
|
|
|
|
<where>
|
|
|
|
|
attr3=#{attr3} and click=#{click} and attr4='0'
|
|
|
|
|
<if test="showname != null and showname != ''">
|
|
|
|
|
showname=#{showname}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectPagelist"
|
|
|
|
|
parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO"
|
|
|
|
|
resultType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
|
|
|
|
|
select * from dbzz_table
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
attr4='0'
|
|
|
|
|
<if test="click != null and click != ''">
|
|
|
|
|
and click =#{click}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY
|
|
|
|
|
CASE level
|
|
|
|
|
WHEN '紧急' THEN 1
|
|
|
|
|
WHEN '一般' THEN 2
|
|
|
|
|
WHEN '非紧急' THEN 3
|
|
|
|
|
ELSE 4
|
|
|
|
|
END,
|
|
|
|
|
id DESC
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selecteqintzq"
|
|
|
|
|
parameterType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO"
|
|
|
|
|
resultType="com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO">
|
|
|
|
|
|
|
|
|
|
select * from dbzz_table where showname=#{showname} and attr3={attr3}
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|