来料抽样规则修改

master
shaoyong 1 year ago
parent 1f66bd4688
commit e69a2bbf2d

@ -2,6 +2,8 @@ package com.op.quality.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.op.quality.domain.QcCheckType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -94,4 +96,13 @@ public class QcSampleRuleController extends BaseController {
public AjaxResult remove(@PathVariable String[] ids) {
return toAjax(qcSampleRuleService.deleteQcSampleRuleByIds(ids));
}
/**
*
*/
@GetMapping(value = "/getCheckType/{typeCode}")
public TableDataInfo getCheckType(@PathVariable("typeCode") String typeCode) {
List<QcCheckType> list = qcSampleRuleService.selectCheckType(typeCode);
return getDataTable(list);
}
}

@ -1,6 +1,8 @@
package com.op.quality.service;
import java.util.List;
import com.op.quality.domain.QcCheckType;
import com.op.quality.domain.QcSampleRule;
/**
@ -57,4 +59,6 @@ public interface IQcSampleRuleService {
* @return
*/
public int deleteQcSampleRuleById(String id);
public List<QcCheckType> selectCheckType(String typeCode);
}

@ -6,6 +6,9 @@ import com.baomidou.dynamic.datasource.annotation.DS;
import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
import com.op.quality.domain.QcCheckType;
import com.op.quality.mapper.QcCheckTypeMapper;
import com.op.quality.service.IQcCheckTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.op.quality.mapper.QcSampleRuleMapper;
@ -27,6 +30,9 @@ public class QcSampleRuleServiceImpl implements IQcSampleRuleService {
@Autowired
private QcSampleRuleMapper qcSampleRuleMapper;
@Autowired
private QcCheckTypeMapper qcCheckTypeMapper;
/**
*
*
@ -106,4 +112,12 @@ public class QcSampleRuleServiceImpl implements IQcSampleRuleService {
public int deleteQcSampleRuleById(String id) {
return qcSampleRuleMapper.deleteQcSampleRuleById(id);
}
@Override
@DS("#header.poolName")
public List<QcCheckType> selectCheckType(String typeCode) {
QcCheckType qcCheckType = new QcCheckType();
qcCheckType.setTypeCode(typeCode);
return qcCheckTypeMapper.selectQcCheckTypeList(qcCheckType);
}
}

Loading…
Cancel
Save