2024年07月02日 1.0.3 优化查询语句

main
gaoshuguang 1 year ago
parent 85cb15d764
commit d3374fc8cd

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import com.nmgs.entity.WxVehicleBind;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
@ -14,5 +15,5 @@ import java.util.Map;
*/
@Mapper
public interface WxVehicleBindMapper extends MPJBaseMapper<WxVehicleBind> {
Page<Map<String, Object>> selectMyPage(Page<Map<String, Object>> page, String vehicleid, Integer vehiclecolor);
Page<Map<String, Object>> selectMyPage(Page<Map<String, Object>> page, String vehicleid, @Param("vehiclecolor") Integer vehiclecolor);
}

@ -44,7 +44,7 @@
<if test="vehicleid != null and vehicleid != ''">
AND t.vehicleid='${vehicleid}'
</if>
<if test="vehiclecolor != null and vehiclecolor != ''">
<if test="vehiclecolor != null">
AND t.vehiclecolor=${vehiclecolor}
</if>
</where>

@ -2,3 +2,4 @@
1 2023年11月27日 1.0.0 初始版本号
2 2023年11月29日 1.0.1 增加微信解绑申请操作
3 2024年04月16日 1.0.2 增加使用次数及剩余次数
4 2024年07月02日 1.0.3 优化查询语句

@ -44,7 +44,7 @@
<if test="vehicleid != null and vehicleid != ''">
AND t.vehicleid='${vehicleid}'
</if>
<if test="vehiclecolor != null and vehiclecolor != ''">
<if test="vehiclecolor != null">
AND t.vehiclecolor=${vehiclecolor}
</if>
</where>

@ -2,3 +2,4 @@
1 2023年11月27日 1.0.0 初始版本号
2 2023年11月29日 1.0.1 增加微信解绑申请操作
3 2024年04月16日 1.0.2 增加使用次数及剩余次数
4 2024年07月02日 1.0.3 优化查询语句

@ -44,7 +44,7 @@
<if test="vehicleid != null and vehicleid != ''">
AND t.vehicleid='${vehicleid}'
</if>
<if test="vehiclecolor != null and vehiclecolor != ''">
<if test="vehiclecolor != null">
AND t.vehiclecolor=${vehiclecolor}
</if>
</where>

@ -2,3 +2,4 @@
1 2023年11月27日 1.0.0 初始版本号
2 2023年11月29日 1.0.1 增加微信解绑申请操作
3 2024年04月16日 1.0.2 增加使用次数及剩余次数
4 2024年07月02日 1.0.3 优化查询语句

@ -821,8 +821,8 @@ export default {
}
},
transforSurplusTimes(row) {
console.log(row)
console.log(row.applyTimes)
// console.log(row)
// console.log(row.applyTimes)
if (row.freeTimes < 0) {
return '';
} else {
@ -858,6 +858,7 @@ export default {
},
},
mounted() {
console.log("============")
this.queryUserBasic();
getCarColorList().then((res) => {
this.CarColorList = res;

Loading…
Cancel
Save