Browse Source

后端整合模块

detached
huangqizhen 5 months ago
parent
commit
a1df2c22de
  1. 9
      src/main/java/com/example/demo/mapper/DetailYMapper.java

9
src/main/java/com/example/demo/mapper/DetailYMapper.java

@ -45,6 +45,7 @@ public interface DetailYMapper {
"`user` ON detail_y.jwcode = `user`.jwcode", "`user` ON detail_y.jwcode = `user`.jwcode",
"<where>", "<where>",
"<if test='jwcode!=null and jwcode.length>0'>and detail_y.jwcode=#{jwcode}</if>", "<if test='jwcode!=null and jwcode.length>0'>and detail_y.jwcode=#{jwcode}</if>",
"<if test='area!=null and area.length>0'>AND `user`.area=#{area}</if>",
"</where>", "</where>",
"GROUP BY", "GROUP BY",
"user_gold.jwcode", "user_gold.jwcode",
@ -68,7 +69,9 @@ public interface DetailYMapper {
"<if test='jwcode!=null and jwcode.length>0'>and detail_y.jwcode=#{jwcode}</if>", "<if test='jwcode!=null and jwcode.length>0'>and detail_y.jwcode=#{jwcode}</if>",
"<if test='updateType!=null'>and update_type=#{updateType}</if>", "<if test='updateType!=null'>and update_type=#{updateType}</if>",
"<if test='startDate != null and endDate != null'>AND detail_y.create_time BETWEEN #{startDate} AND #{endDate}</if>", "<if test='startDate != null and endDate != null'>AND detail_y.create_time BETWEEN #{startDate} AND #{endDate}</if>",
"</where>", "</where>",
"ORDER BY detaily_id desc",
"</script>" "</script>"
}) })
@ -84,9 +87,9 @@ public interface DetailYMapper {
"`detail_y`", "`detail_y`",
"<where>", "<where>",
"<if test='jwcode!=null and jwcode.length>0'>AND jwcode=#{jwcode}</if>", "<if test='jwcode!=null and jwcode.length>0'>AND jwcode=#{jwcode}</if>",
// "<if test='updateType!=null'>AND update_type=#{updateType}</if>",
// "<if test='startDate != null and endDate != null'>AND create_time BETWEEN #{startDate} AND #{endDate}</if>",
"<if test='area!=null and area.length>0'>AND area=#{area}</if>",
"<if test='updateType!=null'>AND update_type=#{updateType}</if>",
"<if test='startDate != null and endDate != null'>AND create_time BETWEEN #{startDate} AND #{endDate}</if>",
"</where>", "</where>",
"</script>" "</script>"
}) })

Loading…
Cancel
Save