| | |
| | | */ |
| | | package org.springblade.modules.inventory.mapper; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.inventory.entity.InventoryEntity; |
| | | import org.springblade.modules.inventory.vo.InventoryVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | * @param inventory |
| | | * @return |
| | | */ |
| | | List<InventoryVO> selectInventoryPage(IPage page, InventoryVO inventory); |
| | | List<InventoryVO> selectInventoryPage(IPage page, @Param("inventory") InventoryVO inventory); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | <select id="selectInventoryPage" resultMap="inventoryResultMap"> |
| | | select * from ins_inventory where is_deleted = 0 |
| | | <if test="inventory.name !=null and inventory.name!=''"> |
| | | AND name LIKE CONCAT('%',#{inventory.name},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | |
| | | */ |
| | | package org.springblade.modules.repairsorder.mapper; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.repairsorder.entity.RepairsorderEntity; |
| | | import org.springblade.modules.repairsorder.vo.RepairsorderVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | * @param repairsorder |
| | | * @return |
| | | */ |
| | | List<RepairsorderVO> selectRepairsorderPage(IPage page, RepairsorderVO repairsorder); |
| | | List<RepairsorderVO> selectRepairsorderPage(IPage page, @Param("repairsorder") RepairsorderVO repairsorder); |
| | | |
| | | /** |
| | | * 获取最大工单编号 |
| | |
| | | |
| | | <select id="selectRepairsorderPage" resultMap="repairsorderResultMap"> |
| | | select * from ins_repairsorder where is_deleted = 0 |
| | | <if test="repairsorder.no !=null and repairsorder.no !='' "> |
| | | AND no like CONCAT('%',#{repairsorder.no},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getRepairsorderMaxNo" resultMap="repairsorderResultMap"> |
| | |
| | | * @param taskinfoPlan |
| | | * @return |
| | | */ |
| | | List<TaskinfoPlanVO> selectTaskinfoPlanPage(IPage page, TaskinfoPlanVO taskinfoPlan); |
| | | List<TaskinfoPlanVO> selectTaskinfoPlanPage(IPage page, @Param("taskinfoPlan") TaskinfoPlanVO taskinfoPlan); |
| | | |
| | | /** |
| | | * 获取最大工单编号 |
| | |
| | | <select id="selectTaskinfoPlanPage" resultMap="taskinfoPlanResultMap"> |
| | | select id,no,title,type,start_time,end_time,content,ST_ASTEXT(route_range) as route_range, |
| | | create_user,create_time,update_user,update_time,status,is_deleted |
| | | from ins_taskinfo_plan where is_deleted = 0 |
| | | from ins_taskinfo_plan |
| | | where is_deleted = 0 |
| | | <if test="taskinfoPlan.no !=null and taskinfoPlan.no != ''"> |
| | | AND no like CONCAT('%',#{taskinfoPlan.no},'%') |
| | | </if> |
| | | <if test="taskinfoPlan.title !=null and taskinfoPlan.title != ''"> |
| | | AND title like CONCAT('%',#{taskinfoPlan.title},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getMaxNo" resultMap="taskinfoPlanResultMap"> |