|
|
|
@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
/** |
|
|
|
* 生产订单排产 |
|
|
|
@ -2131,7 +2132,7 @@ public class ScheduleController extends AbstractController { |
|
|
|
public R openMaterialRoll(@RequestBody Map<String, Object> params) { |
|
|
|
try { |
|
|
|
String site = (String) params.get("site"); |
|
|
|
String seqNo = (String) params.get("seqNo"); |
|
|
|
String seqNo = Objects.toString(params.get("seqNo"), "").trim(); |
|
|
|
String rollNo = (String) params.get("rollNo"); |
|
|
|
Integer histSeqNo = params.get("histSeqNo") != null ? Integer.valueOf(params.get("histSeqNo").toString()) : null; |
|
|
|
String type = (String) params.get("type"); |
|
|
|
@ -2141,7 +2142,7 @@ public class ScheduleController extends AbstractController { |
|
|
|
if (site == null || site.isEmpty()) { |
|
|
|
return R.error("站点不能为空").put("code", 400); |
|
|
|
} |
|
|
|
if (seqNo == null || seqNo.isEmpty()) { |
|
|
|
if (seqNo.isEmpty()) { |
|
|
|
return R.error("派工单号不能为空").put("code", 400); |
|
|
|
} |
|
|
|
if (rollNo == null || rollNo.isEmpty()) { |
|
|
|
|