报修工单文件上传、pda报修接口
parent
0cdc576679
commit
3b66195f8c
@ -0,0 +1,84 @@
|
||||
package com.hw.dms.controller;
|
||||
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.dms.domain.*;
|
||||
import com.hw.dms.service.*;
|
||||
import oracle.jdbc.proxy.annotation.Post;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @ClassName : DmsApiController
|
||||
* @Description : zhouhy
|
||||
* @Author :
|
||||
* @Date: 2024-02-29 16:45
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class DmsApiController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IDmsBillsFaultInstanceService dmsBillsFaultInstanceService;
|
||||
@Autowired
|
||||
private IDmsRepairInstanceService dmsRepairInstanceService;
|
||||
@Autowired
|
||||
private IDmsBillsInspectInstanceService dmsBillsInspectInstanceService;
|
||||
@Autowired
|
||||
private IDmsBillsMaintInstanceService dmsBillsMaintInstanceService;
|
||||
@Autowired
|
||||
private IDmsBillsLubeInstanceService dmsBillsLubeInstanceService;
|
||||
//APS-MyPuRz3G6HfBYcH8dw7Y2ai1D6iZRmXX apifox令牌
|
||||
/**
|
||||
* PDA-报修
|
||||
*
|
||||
* 需传入
|
||||
* 报修来源类型 faultSourceType
|
||||
* 根据来源类型传入工单编码 faultSourceId
|
||||
* 故障类别 faultType
|
||||
* 故障描述 faultDescription
|
||||
* 涉及操作 designOperations
|
||||
* 设备id deviceId
|
||||
* 维修类型 repairType
|
||||
* 外协id outsrcId(可不传入)
|
||||
* 图片路径 imgUrl(可不传入)
|
||||
* */
|
||||
@PostMapping("/PDAFault")
|
||||
@ResponseBody
|
||||
public AjaxResult PDAFault(@RequestBody DmsBillsFaultInstance dmsBillsFaultInstance){
|
||||
return toAjax(dmsBillsFaultInstanceService.insertDmsBillsFaultInstance(dmsBillsFaultInstance));
|
||||
}
|
||||
/**
|
||||
* PDA-检修
|
||||
* */
|
||||
@PostMapping("/PDARepair")
|
||||
@ResponseBody
|
||||
public AjaxResult PDARepair(@RequestBody DmsRepairInstance dmsRepairInstance){
|
||||
return toAjax(dmsRepairInstanceService.insertDmsRepairInstance(dmsRepairInstance));
|
||||
}
|
||||
|
||||
/**
|
||||
* PDA-点巡检
|
||||
* */
|
||||
@PostMapping("/PDAInspect")
|
||||
@ResponseBody
|
||||
public AjaxResult PDAInspect(@RequestBody DmsBillsInspectInstance dmsBillsInspectInstance){
|
||||
return toAjax(dmsBillsInspectInstanceService.insertDmsBillsInspectInstance(dmsBillsInspectInstance));
|
||||
}
|
||||
/**
|
||||
* PDA-保养
|
||||
* */
|
||||
@PostMapping("/PDAMaint")
|
||||
@ResponseBody
|
||||
public AjaxResult PDAMaint(@RequestBody DmsBillsMaintInstance dmsBillsMaintInstance){
|
||||
return toAjax(dmsBillsMaintInstanceService.insertDmsBillsMaintInstance(dmsBillsMaintInstance));
|
||||
}
|
||||
/**
|
||||
* PDA-润滑
|
||||
* */
|
||||
@PostMapping("/PDALube")
|
||||
@ResponseBody
|
||||
public AjaxResult PDALube(@RequestBody DmsBillsLubeInstance dmsBillsLubeInstance){
|
||||
return toAjax(dmsBillsLubeInstanceService.insertDmsBillsLubeInstance(dmsBillsLubeInstance));
|
||||
}
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
package com.hw.dms.controller;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.hw.common.core.utils.DateUtils;
|
||||
import com.hw.dms.domain.DmsPlanMaint;
|
||||
import com.hw.dms.service.IDmsPlanMaintService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.hw.common.log.annotation.Log;
|
||||
import com.hw.common.log.enums.BusinessType;
|
||||
import com.hw.common.security.annotation.RequiresPermissions;
|
||||
import com.hw.dms.domain.DmsBillsMaintInstance;
|
||||
import com.hw.dms.service.IDmsBillsMaintInstanceService;
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.common.core.utils.poi.ExcelUtil;
|
||||
import com.hw.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 保养工单Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dmsBillsMaintInstance")
|
||||
public class DmsBillsMaintInstanceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDmsBillsMaintInstanceService dmsBillsMaintInstanceService;
|
||||
@Autowired
|
||||
private IDmsPlanMaintService dmsPlanMaintService;
|
||||
|
||||
/**
|
||||
* 查询保养工单列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
startPage();
|
||||
List<DmsBillsMaintInstance> list = dmsBillsMaintInstanceService.selectDmsBillsMaintInstanceList(dmsBillsMaintInstance);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养工单列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:export")
|
||||
@Log(title = "保养工单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
List<DmsBillsMaintInstance> list = dmsBillsMaintInstanceService.selectDmsBillsMaintInstanceList(dmsBillsMaintInstance);
|
||||
ExcelUtil<DmsBillsMaintInstance> util = new ExcelUtil<DmsBillsMaintInstance>(DmsBillsMaintInstance.class);
|
||||
util.exportExcel(response, list, "保养工单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取保养工单详细信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:query")
|
||||
@GetMapping(value = "/{maintInstanceId}")
|
||||
public AjaxResult getInfo(@PathVariable("maintInstanceId") Long maintInstanceId)
|
||||
{
|
||||
return success(dmsBillsMaintInstanceService.selectDmsBillsMaintInstanceByMaintInstanceId(maintInstanceId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:add")
|
||||
@Log(title = "保养工单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
return toAjax(dmsBillsMaintInstanceService.insertDmsBillsMaintInstance(dmsBillsMaintInstance));
|
||||
}
|
||||
@PostMapping("/autoAdd")
|
||||
public AjaxResult autoAdd(@RequestBody String dmsBillsMaintId)
|
||||
{
|
||||
String s = dmsBillsMaintId.replaceAll("\"", "");
|
||||
DmsPlanMaint dmsPlanMaint = dmsPlanMaintService.selectDmsPlanMaintByPlanMaintId(Long.valueOf(s));
|
||||
DmsBillsMaintInstance dmsBillsMaintInstance = new DmsBillsMaintInstance();
|
||||
dmsBillsMaintInstance.setPlanMaintId(dmsPlanMaint.getPlanMaintId());
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhh");
|
||||
|
||||
dmsBillsMaintInstance.setBillsMaintCode(sdf.format(DateUtils.getNowDate()));
|
||||
return toAjax(dmsBillsMaintInstanceService.insertDmsBillsMaintInstance(dmsBillsMaintInstance));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:edit")
|
||||
@Log(title = "保养工单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
return toAjax(dmsBillsMaintInstanceService.updateDmsBillsMaintInstance(dmsBillsMaintInstance));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养工单
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsBillsMaintInstance:remove")
|
||||
@Log(title = "保养工单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{maintInstanceIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] maintInstanceIds)
|
||||
{
|
||||
return toAjax(dmsBillsMaintInstanceService.deleteDmsBillsMaintInstanceByMaintInstanceIds(maintInstanceIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.hw.dms.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.hw.common.log.annotation.Log;
|
||||
import com.hw.common.log.enums.BusinessType;
|
||||
import com.hw.common.security.annotation.RequiresPermissions;
|
||||
import com.hw.dms.domain.DmsMaintInstanceActivity;
|
||||
import com.hw.dms.service.IDmsMaintInstanceActivityService;
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.common.core.utils.poi.ExcelUtil;
|
||||
import com.hw.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 保养工单实例节点Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dmsMaintInstanceActivity")
|
||||
public class DmsMaintInstanceActivityController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDmsMaintInstanceActivityService dmsMaintInstanceActivityService;
|
||||
|
||||
/**
|
||||
* 查询保养工单实例节点列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DmsMaintInstanceActivity dmsMaintInstanceActivity)
|
||||
{
|
||||
startPage();
|
||||
List<DmsMaintInstanceActivity> list = dmsMaintInstanceActivityService.selectDmsMaintInstanceActivityList(dmsMaintInstanceActivity);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养工单实例节点列表
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:export")
|
||||
@Log(title = "保养工单实例节点", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DmsMaintInstanceActivity dmsMaintInstanceActivity)
|
||||
{
|
||||
List<DmsMaintInstanceActivity> list = dmsMaintInstanceActivityService.selectDmsMaintInstanceActivityList(dmsMaintInstanceActivity);
|
||||
ExcelUtil<DmsMaintInstanceActivity> util = new ExcelUtil<DmsMaintInstanceActivity>(DmsMaintInstanceActivity.class);
|
||||
util.exportExcel(response, list, "保养工单实例节点数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取保养工单实例节点详细信息
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:query")
|
||||
@GetMapping(value = "/{instanceActivityId}")
|
||||
public AjaxResult getInfo(@PathVariable("instanceActivityId") Long instanceActivityId)
|
||||
{
|
||||
return success(dmsMaintInstanceActivityService.selectDmsMaintInstanceActivityByInstanceActivityId(instanceActivityId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单实例节点
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:add")
|
||||
@Log(title = "保养工单实例节点", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DmsMaintInstanceActivity dmsMaintInstanceActivity)
|
||||
{
|
||||
return toAjax(dmsMaintInstanceActivityService.insertDmsMaintInstanceActivity(dmsMaintInstanceActivity));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单实例节点
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:edit")
|
||||
@Log(title = "保养工单实例节点", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DmsMaintInstanceActivity dmsMaintInstanceActivity)
|
||||
{
|
||||
return toAjax(dmsMaintInstanceActivityService.updateDmsMaintInstanceActivity(dmsMaintInstanceActivity));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养工单实例节点
|
||||
*/
|
||||
@RequiresPermissions("dms:dmsMaintInstanceActivity:remove")
|
||||
@Log(title = "保养工单实例节点", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{instanceActivityIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] instanceActivityIds)
|
||||
{
|
||||
return toAjax(dmsMaintInstanceActivityService.deleteDmsMaintInstanceActivityByInstanceActivityIds(instanceActivityIds));
|
||||
}
|
||||
|
||||
@GetMapping("/selectUserIdByDmsMaintInstanceActivityId/{maintInstanceId}/userId/{userId}")
|
||||
public boolean selectUserIdByDmsMaintInstanceActivityId(@PathVariable("maintInstanceId") Long maintInstanceId,@PathVariable("userId") Long userId){
|
||||
return dmsMaintInstanceActivityService.selectUserIdByDmsMaintInstanceActivityId(maintInstanceId,userId);
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.hw.dms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBillsMaintInstance;
|
||||
|
||||
/**
|
||||
* 保养工单Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface DmsBillsMaintInstanceMapper
|
||||
{
|
||||
/**
|
||||
* 查询保养工单
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 保养工单
|
||||
*/
|
||||
public DmsBillsMaintInstance selectDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId);
|
||||
|
||||
/**
|
||||
* 查询保养工单列表
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 保养工单集合
|
||||
*/
|
||||
public List<DmsBillsMaintInstance> selectDmsBillsMaintInstanceList(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 新增保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 修改保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 删除保养工单
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId);
|
||||
|
||||
/**
|
||||
* 批量删除保养工单
|
||||
*
|
||||
* @param maintInstanceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceIds(Long[] maintInstanceIds);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.hw.dms.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsMaintInstanceActivity;
|
||||
|
||||
/**
|
||||
* 保养工单实例节点Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface DmsMaintInstanceActivityMapper
|
||||
{
|
||||
/**
|
||||
* 查询保养工单实例节点
|
||||
*
|
||||
* @param instanceActivityId 保养工单实例节点主键
|
||||
* @return 保养工单实例节点
|
||||
*/
|
||||
public DmsMaintInstanceActivity selectDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);
|
||||
|
||||
/**
|
||||
* 查询保养工单实例节点列表
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 保养工单实例节点集合
|
||||
*/
|
||||
public List<DmsMaintInstanceActivity> selectDmsMaintInstanceActivityList(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 新增保养工单实例节点
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 修改保养工单实例节点
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 删除保养工单实例节点
|
||||
*
|
||||
* @param instanceActivityId 保养工单实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);
|
||||
|
||||
/**
|
||||
* 批量删除保养工单实例节点
|
||||
*
|
||||
* @param instanceActivityIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsMaintInstanceActivityByInstanceActivityIds(Long[] instanceActivityIds);
|
||||
|
||||
Long[] selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.hw.dms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsBillsMaintInstance;
|
||||
|
||||
/**
|
||||
* 保养工单Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IDmsBillsMaintInstanceService
|
||||
{
|
||||
/**
|
||||
* 查询保养工单
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 保养工单
|
||||
*/
|
||||
public DmsBillsMaintInstance selectDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId);
|
||||
|
||||
/**
|
||||
* 查询保养工单列表
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 保养工单集合
|
||||
*/
|
||||
public List<DmsBillsMaintInstance> selectDmsBillsMaintInstanceList(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 新增保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 修改保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
|
||||
/**
|
||||
* 批量删除保养工单
|
||||
*
|
||||
* @param maintInstanceIds 需要删除的保养工单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceIds(Long[] maintInstanceIds);
|
||||
|
||||
/**
|
||||
* 删除保养工单信息
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId);
|
||||
|
||||
int insertDmsBillsMaintInstancePDA(DmsBillsMaintInstance dmsBillsMaintInstance);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.hw.dms.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.dms.domain.DmsMaintInstanceActivity;
|
||||
|
||||
/**
|
||||
* 保养工单实例节点Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IDmsMaintInstanceActivityService
|
||||
{
|
||||
/**
|
||||
* 查询保养工单实例节点
|
||||
*
|
||||
* @param instanceActivityId 保养工单实例节点主键
|
||||
* @return 保养工单实例节点
|
||||
*/
|
||||
public DmsMaintInstanceActivity selectDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);
|
||||
|
||||
/**
|
||||
* 查询保养工单实例节点列表
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 保养工单实例节点集合
|
||||
*/
|
||||
public List<DmsMaintInstanceActivity> selectDmsMaintInstanceActivityList(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 新增保养工单实例节点
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 修改保养工单实例节点
|
||||
*
|
||||
* @param dmsMaintInstanceActivity 保养工单实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);
|
||||
|
||||
/**
|
||||
* 批量删除保养工单实例节点
|
||||
*
|
||||
* @param instanceActivityIds 需要删除的保养工单实例节点主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsMaintInstanceActivityByInstanceActivityIds(Long[] instanceActivityIds);
|
||||
|
||||
/**
|
||||
* 删除保养工单实例节点信息
|
||||
*
|
||||
* @param instanceActivityId 保养工单实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);
|
||||
|
||||
boolean selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId,Long userId);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
package com.hw.dms.service.impl;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.hw.common.core.constant.SecurityConstants;
|
||||
import com.hw.common.core.utils.DateUtils;
|
||||
import com.hw.dms.domain.DmsMaintInstanceActivity;
|
||||
import com.hw.dms.domain.DmsPlanMaint;
|
||||
import com.hw.dms.mapper.DmsMaintInstanceActivityMapper;
|
||||
import com.hw.dms.mapper.DmsPlanMaintMapper;
|
||||
import com.hw.system.api.RemoteSysCommonService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.hw.dms.mapper.DmsBillsMaintInstanceMapper;
|
||||
import com.hw.dms.domain.DmsBillsMaintInstance;
|
||||
import com.hw.dms.service.IDmsBillsMaintInstanceService;
|
||||
|
||||
/**
|
||||
* 保养工单Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
@Service
|
||||
public class DmsBillsMaintInstanceServiceImpl implements IDmsBillsMaintInstanceService
|
||||
{
|
||||
@Autowired
|
||||
private DmsBillsMaintInstanceMapper dmsBillsMaintInstanceMapper;
|
||||
@Autowired
|
||||
private DmsPlanMaintMapper dmsPlanMaintMapper;
|
||||
@Autowired
|
||||
private DmsMaintInstanceActivityMapper dmsMaintInstanceActivityMapper;
|
||||
@Autowired
|
||||
private RemoteSysCommonService remoteSysCommonService;
|
||||
|
||||
/**
|
||||
* 查询保养工单
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 保养工单
|
||||
*/
|
||||
@Override
|
||||
public DmsBillsMaintInstance selectDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId)
|
||||
{
|
||||
return dmsBillsMaintInstanceMapper.selectDmsBillsMaintInstanceByMaintInstanceId(maintInstanceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询保养工单列表
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 保养工单
|
||||
*/
|
||||
@Override
|
||||
public List<DmsBillsMaintInstance> selectDmsBillsMaintInstanceList(DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
return dmsBillsMaintInstanceMapper.selectDmsBillsMaintInstanceList(dmsBillsMaintInstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
|
||||
dmsBillsMaintInstance.setCreateTime(DateUtils.getNowDate());
|
||||
DmsPlanMaint dmsPlanMaint = dmsPlanMaintMapper.selectDmsPlanMaintByPlanMaintId(dmsBillsMaintInstance.getPlanMaintId());
|
||||
dmsBillsMaintInstance.setPlanBeginTime(dmsPlanMaint.getMaintTime());
|
||||
dmsBillsMaintInstance.setBillsMaintCode(sdf.format(DateUtils.getNowDate()));
|
||||
dmsBillsMaintInstance.setMaintStatus(1l);
|
||||
Date lubeTime = dmsPlanMaint.getMaintTime();
|
||||
Long timeLimit = dmsPlanMaint.getTimeLimit();
|
||||
dmsBillsMaintInstance.setIsFlag(1l);
|
||||
dmsBillsMaintInstance.setWfProcessId(103l);
|
||||
dmsBillsMaintInstance.setPlanEndTime(new Date(lubeTime.getTime() + timeLimit*1000l));
|
||||
int i = dmsBillsMaintInstanceMapper.insertDmsBillsMaintInstance(dmsBillsMaintInstance);
|
||||
|
||||
DmsMaintInstanceActivity maintInstanceActivity = new DmsMaintInstanceActivity();
|
||||
maintInstanceActivity.setMaintInstanceId(dmsBillsMaintInstance.getMaintInstanceId());
|
||||
maintInstanceActivity.setProcessActivityId(103l);
|
||||
maintInstanceActivity.setMaintLevel(dmsPlanMaint.getMaintLevel());
|
||||
maintInstanceActivity.setMaintGroup(dmsPlanMaint.getMaintGroup());
|
||||
maintInstanceActivity.setMaintSupervisor(dmsPlanMaint.getMaintSupervisor());
|
||||
maintInstanceActivity.setProcessStepOrder(1l);
|
||||
dmsMaintInstanceActivityMapper.insertDmsMaintInstanceActivity(maintInstanceActivity);
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单
|
||||
*
|
||||
* @param dmsBillsMaintInstance 保养工单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDmsBillsMaintInstance(DmsBillsMaintInstance dmsBillsMaintInstance)
|
||||
{
|
||||
dmsBillsMaintInstance.setUpdateTime(DateUtils.getNowDate());
|
||||
return dmsBillsMaintInstanceMapper.updateDmsBillsMaintInstance(dmsBillsMaintInstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除保养工单
|
||||
*
|
||||
* @param maintInstanceIds 需要删除的保养工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceIds(Long[] maintInstanceIds)
|
||||
{
|
||||
return dmsBillsMaintInstanceMapper.deleteDmsBillsMaintInstanceByMaintInstanceIds(maintInstanceIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养工单信息
|
||||
*
|
||||
* @param maintInstanceId 保养工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsBillsMaintInstanceByMaintInstanceId(Long maintInstanceId)
|
||||
{
|
||||
return dmsBillsMaintInstanceMapper.deleteDmsBillsMaintInstanceByMaintInstanceId(maintInstanceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertDmsBillsMaintInstancePDA(DmsBillsMaintInstance dmsBillsMaintInstance) {
|
||||
Long aLong= remoteSysCommonService.selectProcessActivityIdByWfProcessId(SecurityConstants.INNER, 103l);
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHH");
|
||||
dmsBillsMaintInstance.setWfProcessId(103l);
|
||||
dmsBillsMaintInstance.setBillsMaintCode(sdf.format(DateUtils.getNowDate()));
|
||||
dmsBillsMaintInstance.setMaintStatus(1l);
|
||||
dmsBillsMaintInstance.setIsFlag(1l);
|
||||
int i = dmsBillsMaintInstanceMapper.insertDmsBillsMaintInstance(dmsBillsMaintInstance);
|
||||
//创建保养工单实例节点第一步
|
||||
DmsMaintInstanceActivity dmsMaintInstanceActivity = new DmsMaintInstanceActivity();
|
||||
dmsMaintInstanceActivity.setMaintInstanceId(dmsBillsMaintInstance.getMaintInstanceId());
|
||||
dmsMaintInstanceActivity.setProcessActivityId(aLong);
|
||||
dmsMaintInstanceActivity.setMaintGroup(dmsBillsMaintInstance.getMaintGroup());
|
||||
dmsMaintInstanceActivity.setMaintLevel(dmsBillsMaintInstance.getMaintLevel());
|
||||
dmsMaintInstanceActivity.setMaintSupervisor(dmsBillsMaintInstance.getMaintSupervisor());
|
||||
dmsMaintInstanceActivity.setProcessStepOrder(1l);
|
||||
dmsMaintInstanceActivity.setProcessHandleStatus("1");
|
||||
dmsMaintInstanceActivityMapper.insertDmsMaintInstanceActivity(dmsMaintInstanceActivity);
|
||||
return i;
|
||||
}
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hw.dms.mapper.DmsBillsMaintInstanceMapper">
|
||||
|
||||
<resultMap type="DmsBillsMaintInstance" id="DmsBillsMaintInstanceResult">
|
||||
<result property="maintInstanceId" column="maint_instance_id" />
|
||||
<result property="planMaintId" column="plan_maint_id" />
|
||||
<result property="wfProcessId" column="wf_process_id" />
|
||||
<result property="billsMaintCode" column="bills_maint_code" />
|
||||
<result property="planBeginTime" column="plan_begin_time" />
|
||||
<result property="realBeginTime" column="real_begin_time" />
|
||||
<result property="planEndTime" column="plan_end_time" />
|
||||
<result property="realEndTime" column="real_end_time" />
|
||||
<result property="maintStatus" column="maint_status" />
|
||||
<result property="maintCompRate" column="maint_comp_rate" />
|
||||
<result property="isFlag" column="is_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsBillsMaintInstanceVo">
|
||||
select maint_instance_id, plan_maint_id, wf_process_id, bills_maint_code, plan_begin_time, real_begin_time, plan_end_time, real_end_time, maint_status, maint_comp_rate, is_flag, remark, create_by, create_time, update_by, update_time from dms_bills_maint_instance
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsBillsMaintInstanceList" parameterType="DmsBillsMaintInstance" resultMap="DmsBillsMaintInstanceResult">
|
||||
<include refid="selectDmsBillsMaintInstanceVo"/>
|
||||
<where>
|
||||
<if test="planMaintId != null "> and plan_maint_id = #{planMaintId}</if>
|
||||
<if test="wfProcessId != null "> and wf_process_id = #{wfProcessId}</if>
|
||||
<if test="billsMaintCode != null and billsMaintCode != ''"> and bills_maint_code = #{billsMaintCode}</if>
|
||||
<if test="planBeginTime != null "> and plan_begin_time = #{planBeginTime}</if>
|
||||
<if test="realBeginTime != null "> and real_begin_time = #{realBeginTime}</if>
|
||||
<if test="planEndTime != null "> and plan_end_time = #{planEndTime}</if>
|
||||
<if test="realEndTime != null "> and real_end_time = #{realEndTime}</if>
|
||||
<if test="maintStatus != null "> and maint_status = #{maintStatus}</if>
|
||||
<if test="maintCompRate != null "> and maint_comp_rate = #{maintCompRate}</if>
|
||||
<if test="isFlag != null "> and is_flag = #{isFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsBillsMaintInstanceByMaintInstanceId" parameterType="Long" resultMap="DmsBillsMaintInstanceResult">
|
||||
<include refid="selectDmsBillsMaintInstanceVo"/>
|
||||
where maint_instance_id = #{maintInstanceId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDmsBillsMaintInstance" parameterType="DmsBillsMaintInstance" useGeneratedKeys="true" keyProperty="maintInstanceId">
|
||||
insert into dms_bills_maint_instance
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="planMaintId != null">plan_maint_id,</if>
|
||||
<if test="wfProcessId != null">wf_process_id,</if>
|
||||
<if test="billsMaintCode != null and billsMaintCode != ''">bills_maint_code,</if>
|
||||
<if test="planBeginTime != null">plan_begin_time,</if>
|
||||
<if test="realBeginTime != null">real_begin_time,</if>
|
||||
<if test="planEndTime != null">plan_end_time,</if>
|
||||
<if test="realEndTime != null">real_end_time,</if>
|
||||
<if test="maintStatus != null">maint_status,</if>
|
||||
<if test="maintCompRate != null">maint_comp_rate,</if>
|
||||
<if test="isFlag != null">is_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="planMaintId != null">#{planMaintId},</if>
|
||||
<if test="wfProcessId != null">#{wfProcessId},</if>
|
||||
<if test="billsMaintCode != null and billsMaintCode != ''">#{billsMaintCode},</if>
|
||||
<if test="planBeginTime != null">#{planBeginTime},</if>
|
||||
<if test="realBeginTime != null">#{realBeginTime},</if>
|
||||
<if test="planEndTime != null">#{planEndTime},</if>
|
||||
<if test="realEndTime != null">#{realEndTime},</if>
|
||||
<if test="maintStatus != null">#{maintStatus},</if>
|
||||
<if test="maintCompRate != null">#{maintCompRate},</if>
|
||||
<if test="isFlag != null">#{isFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsBillsMaintInstance" parameterType="DmsBillsMaintInstance">
|
||||
update dms_bills_maint_instance
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="planMaintId != null">plan_maint_id = #{planMaintId},</if>
|
||||
<if test="wfProcessId != null">wf_process_id = #{wfProcessId},</if>
|
||||
<if test="billsMaintCode != null and billsMaintCode != ''">bills_maint_code = #{billsMaintCode},</if>
|
||||
<if test="planBeginTime != null">plan_begin_time = #{planBeginTime},</if>
|
||||
<if test="realBeginTime != null">real_begin_time = #{realBeginTime},</if>
|
||||
<if test="planEndTime != null">plan_end_time = #{planEndTime},</if>
|
||||
<if test="realEndTime != null">real_end_time = #{realEndTime},</if>
|
||||
<if test="maintStatus != null">maint_status = #{maintStatus},</if>
|
||||
<if test="maintCompRate != null">maint_comp_rate = #{maintCompRate},</if>
|
||||
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where maint_instance_id = #{maintInstanceId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsBillsMaintInstanceByMaintInstanceId" parameterType="Long">
|
||||
delete from dms_bills_maint_instance where maint_instance_id = #{maintInstanceId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsBillsMaintInstanceByMaintInstanceIds" parameterType="String">
|
||||
delete from dms_bills_maint_instance where maint_instance_id in
|
||||
<foreach item="maintInstanceId" collection="array" open="(" separator="," close=")">
|
||||
#{maintInstanceId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hw.dms.mapper.DmsFaultInstanceFileMapper">
|
||||
|
||||
<resultMap type="DmsFaultInstanceFile" id="DmsFaultInstanceFileResult">
|
||||
<result property="repairInstanceFileId" column="repair_instance_file_id" />
|
||||
<result property="targetType" column="target_type" />
|
||||
<result property="targetId" column="target_id" />
|
||||
<result property="faultFile" column="fault_file" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDmsFaultInstanceFileVo">
|
||||
select repair_instance_file_id, target_type, target_id, fault_file from dms_fault_instance_file
|
||||
</sql>
|
||||
|
||||
<select id="selectDmsFaultInstanceFileList" parameterType="DmsFaultInstanceFile" resultMap="DmsFaultInstanceFileResult">
|
||||
<include refid="selectDmsFaultInstanceFileVo"/>
|
||||
<where>
|
||||
<if test="targetType != null and targetType != ''"> and target_type = #{targetType}</if>
|
||||
<if test="targetId != null "> and target_id = #{targetId}</if>
|
||||
<if test="faultFile != null and faultFile != ''"> and fault_file = #{faultFile}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDmsFaultInstanceFileByRepairInstanceFileId" parameterType="Long" resultMap="DmsFaultInstanceFileResult">
|
||||
<include refid="selectDmsFaultInstanceFileVo"/>
|
||||
where repair_instance_file_id = #{repairInstanceFileId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDmsFaultInstanceFile" parameterType="DmsFaultInstanceFile" useGeneratedKeys="true" keyProperty="repairInstanceFileId">
|
||||
insert into dms_fault_instance_file
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="targetType != null and targetType != ''">target_type,</if>
|
||||
<if test="targetId != null">target_id,</if>
|
||||
<if test="faultFile != null and faultFile != ''">fault_file,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="targetType != null and targetType != ''">#{targetType},</if>
|
||||
<if test="targetId != null">#{targetId},</if>
|
||||
<if test="faultFile != null and faultFile != ''">#{faultFile},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDmsFaultInstanceFile" parameterType="DmsFaultInstanceFile">
|
||||
update dms_fault_instance_file
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="targetType != null and targetType != ''">target_type = #{targetType},</if>
|
||||
<if test="targetId != null">target_id = #{targetId},</if>
|
||||
<if test="faultFile != null and faultFile != ''">fault_file = #{faultFile},</if>
|
||||
</trim>
|
||||
where repair_instance_file_id = #{repairInstanceFileId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDmsFaultInstanceFileByRepairInstanceFileId" parameterType="Long">
|
||||
delete from dms_fault_instance_file where repair_instance_file_id = #{repairInstanceFileId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDmsFaultInstanceFileByRepairInstanceFileIds" parameterType="String">
|
||||
delete from dms_fault_instance_file where repair_instance_file_id in
|
||||
<foreach item="repairInstanceFileId" collection="array" open="(" separator="," close=")">
|
||||
#{repairInstanceFileId}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="selectDmsFaultInstanceFileByFaultId" parameterType="Long" resultMap="DmsFaultInstanceFileResult">
|
||||
select * from dms_fault_instance_file where target_id = (
|
||||
select min(instance_activity_id) from dms_fault_instance_activity where repair_instance_id = #{repairInstanceId}
|
||||
)
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询保养工单列表
|
||||
export function listDmsBillsMaintInstance(query) {
|
||||
return request({
|
||||
url: '/dms/dmsBillsMaintInstance/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询保养工单详细
|
||||
export function getDmsBillsMaintInstance(maintInstanceId) {
|
||||
return request({
|
||||
url: '/dms/dmsBillsMaintInstance/' + maintInstanceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保养工单
|
||||
export function addDmsBillsMaintInstance(data) {
|
||||
return request({
|
||||
url: '/dms/dmsBillsMaintInstance',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保养工单
|
||||
export function updateDmsBillsMaintInstance(data) {
|
||||
return request({
|
||||
url: '/dms/dmsBillsMaintInstance',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除保养工单
|
||||
export function delDmsBillsMaintInstance(maintInstanceId) {
|
||||
return request({
|
||||
url: '/dms/dmsBillsMaintInstance/' + maintInstanceId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询保养工单实例节点列表
|
||||
export function listDmsMaintInstanceActivity(query) {
|
||||
return request({
|
||||
url: '/dms/dmsMaintInstanceActivity/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询保养工单实例节点详细
|
||||
export function getDmsMaintInstanceActivity(instanceActivityId) {
|
||||
return request({
|
||||
url: '/dms/dmsMaintInstanceActivity/' + instanceActivityId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保养工单实例节点
|
||||
export function addDmsMaintInstanceActivity(data) {
|
||||
return request({
|
||||
url: '/dms/dmsMaintInstanceActivity',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保养工单实例节点
|
||||
export function updateDmsMaintInstanceActivity(data) {
|
||||
return request({
|
||||
url: '/dms/dmsMaintInstanceActivity',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除保养工单实例节点
|
||||
export function delDmsMaintInstanceActivity(instanceActivityId) {
|
||||
return request({
|
||||
url: '/dms/dmsMaintInstanceActivity/' + instanceActivityId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectUserIdByDmsMaintInstanceActivityId(maintInstanceId,userId) {
|
||||
return request({
|
||||
url:`/dms/dmsMaintInstanceActivity/selectUserIdByDmsMaintInstanceActivityId/${maintInstanceId}/userId/${userId}`,
|
||||
method:'get'
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue