|
|
@ -13,6 +13,7 @@ import com.dsic.gj_erp.bean.ResultBean;
|
|
|
|
import com.dsic.gj_erp.bean.jcsj.DmCzplpNew;
|
|
|
|
import com.dsic.gj_erp.bean.jcsj.DmCzplpNew;
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjh;
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjh;
|
|
|
|
import com.dsic.gj_erp.bean.kc.ImCkwpkwp;
|
|
|
|
import com.dsic.gj_erp.bean.kc.ImCkwpkwp;
|
|
|
|
|
|
|
|
import com.dsic.gj_erp.exception.CustomException;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCzplpNewService;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCzplpNewService;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCzplpService;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCzplpService;
|
|
|
|
import com.dsic.gj_erp.service.jhgk.DmYdjhService;
|
|
|
|
import com.dsic.gj_erp.service.jhgk.DmYdjhService;
|
|
|
@ -151,8 +152,11 @@ public class DmYdjhController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/tj")
|
|
|
|
@RequestMapping("/tj")
|
|
|
|
@AuthFunction
|
|
|
|
@AuthFunction
|
|
|
|
public ResultBean tj(@RequestBody List<DmYdjh> list){
|
|
|
|
public ResultBean tj(@RequestBody List<DmYdjh> list) throws CustomException {
|
|
|
|
List<DmYdjh> collect = list.stream().filter(fst -> StringUtils.isBlank(fst.getColor())).collect(Collectors.toList());
|
|
|
|
List<DmYdjh> collect = list.stream().filter(fst -> StringUtils.isBlank(fst.getColor())).collect(Collectors.toList());
|
|
|
|
|
|
|
|
if (collect.isEmpty()){
|
|
|
|
|
|
|
|
throw new CustomException(10009,"不满足提交条件,请检查");
|
|
|
|
|
|
|
|
}
|
|
|
|
List<String> idList=collect.stream().map(DmYdjh::getId).collect(Collectors.toList());
|
|
|
|
List<String> idList=collect.stream().map(DmYdjh::getId).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
if (idList.size()>1000){
|
|
|
|
if (idList.size()>1000){
|
|
|
|