派工单修改,权限修改

This commit is contained in:
2026-01-01 21:54:00 +08:00
parent a6ae9c74a3
commit a6a2b9a9d0
4 changed files with 26 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ import com.zhyc.common.core.page.TableDataInfo;
* @date 2025-07-11 * @date 2025-07-11
*/ */
@RestController @RestController
@RequestMapping("/system/medicine") @RequestMapping("/biosafety/medicine")
public class SwMedicineController extends BaseController public class SwMedicineController extends BaseController
{ {
@Autowired @Autowired
@@ -38,7 +38,7 @@ public class SwMedicineController extends BaseController
/** /**
* 查询药品列表 * 查询药品列表
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:list')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SwMedicine swMedicine) public TableDataInfo list(SwMedicine swMedicine)
{ {
@@ -50,7 +50,7 @@ public class SwMedicineController extends BaseController
/** /**
* 导出药品列表 * 导出药品列表
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:export')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:export')")
@Log(title = "药品", businessType = BusinessType.EXPORT) @Log(title = "药品", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, SwMedicine swMedicine) public void export(HttpServletResponse response, SwMedicine swMedicine)
@@ -63,7 +63,7 @@ public class SwMedicineController extends BaseController
/** /**
* 获取药品详细信息 * 获取药品详细信息
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:query')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
@@ -73,7 +73,7 @@ public class SwMedicineController extends BaseController
/** /**
* 新增药品 * 新增药品
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:add')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:add')")
@Log(title = "药品", businessType = BusinessType.INSERT) @Log(title = "药品", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SwMedicine swMedicine) public AjaxResult add(@RequestBody SwMedicine swMedicine)
@@ -84,7 +84,7 @@ public class SwMedicineController extends BaseController
/** /**
* 修改药品 * 修改药品
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:edit')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:edit')")
@Log(title = "药品", businessType = BusinessType.UPDATE) @Log(title = "药品", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody SwMedicine swMedicine) public AjaxResult edit(@RequestBody SwMedicine swMedicine)
@@ -95,7 +95,7 @@ public class SwMedicineController extends BaseController
/** /**
* 删除药品 * 删除药品
*/ */
@PreAuthorize("@ss.hasPermi('system:medicine:remove')") @PreAuthorize("@ss.hasPermi('biosafety:medicine:remove')")
@Log(title = "药品", businessType = BusinessType.DELETE) @Log(title = "药品", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)

View File

@@ -68,6 +68,13 @@ public class WorkOrder extends BaseEntity
@Excel(name = "计划执行日期,必填", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "计划执行日期,必填", width = 30, dateFormat = "yyyy-MM-dd")
private Date executeDate; private Date executeDate;
// 查询计划日期
private Date beginPlanDate;
private Date endPlanDate;
// 查询结束日期
private Date beginFinishDate;
private Date endFinishDate;
/** 计划执行时段,可空 */ /** 计划执行时段,可空 */
@Excel(name = "计划执行时段,可空") @Excel(name = "计划执行时段,可空")
private String executeTime; private String executeTime;

View File

@@ -46,11 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="orderNo != null and orderNo != ''"> and order_no like concat('%', #{orderNo}, '%')</if> <if test="orderNo != null and orderNo != ''"> and order_no like concat('%', #{orderNo}, '%')</if>
<if test="planId != null "> and plan_id = #{planId}</if> <if test="planId != null "> and plan_id = #{planId}</if>
<if test="bizType != null "> and biz_type = #{bizType}</if> <if test="bizType != null "> and biz_type = #{bizType}</if>
<if test="title != null and title != ''"> and title like coucat('%', #{title},'%')</if> <if test="title != null and title != ''"> and title like concat('%', #{title},'%')</if>
<if test="content != null and content != ''"> and content = #{content}</if> <if test="content != null and content != ''"> and content = #{content}</if>
<if test="department != null and department != ''"> and department = #{department}</if> <if test="department != null and department != ''"> and department = #{department}</if>
<if test="executor != null and executor != ''"> and executor like coucat('%',#{executor},'%') </if> <if test="executor != null and executor != ''"> and executor like concat('%',#{executor},'%') </if>
<if test="params.beginPlanDate != null and params.beginPlanDate != '' and params.endPlanDat != null and params.endPlanDate != ''"> and execute_date between #{params.beginPlanDate} and #{params.endPlanDate}</if> <if test="beginPlanDate != null and endPlanDate != null ">
and execute_date between #{beginPlanDate} and #{endPlanDate}
</if>
<if test="executeTime != null and executeTime != ''"> and execute_time = #{executeTime}</if> <if test="executeTime != null and executeTime != ''"> and execute_time = #{executeTime}</if>
<if test="sheepScope != null and sheepScope != ''"> and sheep_scope = #{sheepScope}</if> <if test="sheepScope != null and sheepScope != ''"> and sheep_scope = #{sheepScope}</if>
<if test="location != null and location != ''"> and location = #{location}</if> <if test="location != null and location != ''"> and location = #{location}</if>
@@ -62,11 +64,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="issueTime != null "> and issue_time = #{issueTime}</if> <if test="issueTime != null "> and issue_time = #{issueTime}</if>
<if test="receiverId != null "> and receiver_id = #{receiverId}</if> <if test="receiverId != null "> and receiver_id = #{receiverId}</if>
<if test="receiveTime != null "> and receive_time = #{receiveTime}</if> <if test="receiveTime != null "> and receive_time = #{receiveTime}</if>
<if test="params.beginDatetime != null and params.beginDatetime != '' and params.endFinishDate != null and params.endFinishDate != ''"> and finish_time between #{params.beginFinishDate} and #{params.endFinishDate}</if> <if test="beginFinishDate != null and endFinishDate != null ">
and finish_time between #{beginFinishDate} and #{endFinishDate}
</if>
<if test="result != null and result != ''"> and result = #{result}</if> <if test="result != null and result != ''"> and result = #{result}</if>
</where> </where>
order by execute_date desc
</select> </select>
<select id="selectWorkOrderById" parameterType="Long" resultMap="WorkOrderResult"> <select id="selectWorkOrderById" parameterType="Long" resultMap="WorkOrderResult">
<include refid="selectWorkOrderVo"/> <include refid="selectWorkOrderVo"/>
where id = #{id} where id = #{id}