第几次盘点表增加equipment_前缀
This commit is contained in:
parent
8fb503ee2e
commit
62da52343b
@ -16,7 +16,7 @@ import java.util.Date;
|
||||
*/
|
||||
|
||||
@Data
|
||||
@TableName("t_count")
|
||||
@TableName("equipment_t_count")
|
||||
public class TCount implements java.io.Serializable {
|
||||
//主键id
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
|
||||
@ -21,12 +21,12 @@
|
||||
|
||||
|
||||
<select id="selectTCountById" resultType="TCount" >
|
||||
select * from t_count where id=#{id} and is_delete = 0 limit 1
|
||||
select * from equipment_t_count where id=#{id} and is_delete = 0 limit 1
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertTCount" parameterType="TCount" useGeneratedKeys="true" keyProperty="id" >
|
||||
insert into t_count(
|
||||
insert into equipment_t_count(
|
||||
<if test="num != null">num, </if>
|
||||
is_delete,
|
||||
gmt_create,
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
<update id="updateTCountById" parameterType="TCount" >
|
||||
update
|
||||
t_count
|
||||
equipment_t_count
|
||||
<trim prefix="set" suffixOverrides=",">
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
<update id="updateCoverTCountById" parameterType="TCount" >
|
||||
update
|
||||
t_count
|
||||
equipment_t_count
|
||||
set
|
||||
is_delete = #{isDelete},
|
||||
gmt_create = #{gmtCreate},
|
||||
@ -66,14 +66,14 @@
|
||||
|
||||
|
||||
<update id="deleteTCountById" parameterType="java.lang.Long">
|
||||
update t_count set is_delete = 1 where id=#{id} limit 1
|
||||
update equipment_t_count set is_delete = 1 where id=#{id} limit 1
|
||||
</update>
|
||||
|
||||
<select id="selectMaxCount" resultType="com.lz.modules.equipment.entity.TCount">
|
||||
select * from t_count order by id desc limit 1
|
||||
select * from equipment_t_count order by id desc limit 1
|
||||
</select>
|
||||
<select id="selectListLimit" resultType="com.lz.modules.equipment.entity.TCount">
|
||||
select * from t_count order by id desc limit #{limit}
|
||||
select * from equipment_t_count order by id desc limit #{limit}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user