过程检验单删除部分
This commit is contained in:
parent
5417109e48
commit
9f1c3af61b
@ -8,9 +8,11 @@ import com.ktg.common.utils.StringUtils;
|
|||||||
import com.ktg.mes.pro.domain.ProWorkorder;
|
import com.ktg.mes.pro.domain.ProWorkorder;
|
||||||
import com.ktg.mes.pro.service.IProWorkorderService;
|
import com.ktg.mes.pro.service.IProWorkorderService;
|
||||||
import com.ktg.mes.qc.domain.QcTemplate;
|
import com.ktg.mes.qc.domain.QcTemplate;
|
||||||
|
import com.ktg.mes.qc.service.IQcIpqcLineService;
|
||||||
import com.ktg.mes.qc.service.IQcTemplateService;
|
import com.ktg.mes.qc.service.IQcTemplateService;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.PutMapping;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
@ -47,6 +49,9 @@ public class QcIpqcController extends BaseController
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IQcTemplateService qcTemplateService;
|
private IQcTemplateService qcTemplateService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IQcIpqcLineService qcIpqcLineService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询过程检验单列表
|
* 查询过程检验单列表
|
||||||
*/
|
*/
|
||||||
@ -138,9 +143,15 @@ public class QcIpqcController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('mes:qc:ipqc:remove')")
|
@PreAuthorize("@ss.hasPermi('mes:qc:ipqc:remove')")
|
||||||
@Log(title = "过程检验单", businessType = BusinessType.DELETE)
|
@Log(title = "过程检验单", businessType = BusinessType.DELETE)
|
||||||
|
@Transactional
|
||||||
@DeleteMapping("/{ipqcIds}")
|
@DeleteMapping("/{ipqcIds}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ipqcIds)
|
public AjaxResult remove(@PathVariable Long[] ipqcIds)
|
||||||
{
|
{
|
||||||
|
for (Long ipqcId: ipqcIds
|
||||||
|
) {
|
||||||
|
qcIpqcLineService.deleteByIpqcId(ipqcId);
|
||||||
|
}
|
||||||
|
|
||||||
return toAjax(qcIpqcService.deleteQcIpqcByIpqcIds(ipqcIds));
|
return toAjax(qcIpqcService.deleteQcIpqcByIpqcIds(ipqcIds));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,4 +58,11 @@ public interface QcIpqcLineMapper
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteQcIpqcLineByLineIds(Long[] lineIds);
|
public int deleteQcIpqcLineByLineIds(Long[] lineIds);
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 根据检验单头ID删除所有行信息
|
||||||
|
* @param ipqcId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int deleteByIpqcId(Long ipqcId);
|
||||||
}
|
}
|
||||||
|
@ -58,4 +58,11 @@ public interface IQcIpqcLineService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteQcIpqcLineByLineId(Long lineId);
|
public int deleteQcIpqcLineByLineId(Long lineId);
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 根据检验单头ID删除所有行信息
|
||||||
|
* @param ipqcId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int deleteByIpqcId(Long ipqcId);
|
||||||
}
|
}
|
||||||
|
@ -93,4 +93,9 @@ public class QcIpqcLineServiceImpl implements IQcIpqcLineService
|
|||||||
{
|
{
|
||||||
return qcIpqcLineMapper.deleteQcIpqcLineByLineId(lineId);
|
return qcIpqcLineMapper.deleteQcIpqcLineByLineId(lineId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteByIpqcId(Long ipqcId) {
|
||||||
|
return qcIpqcLineMapper.deleteByIpqcId(ipqcId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,4 +154,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
#{lineId}
|
#{lineId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteByIpqcId" parameterType="Long">
|
||||||
|
delete from qc_ipqc_line where ipqc_id = #{ipqcId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user