允收期计算控制
parent
c6c3e73ca9
commit
63957e627d
|
@ -486,6 +486,13 @@ public class WmInQmIController extends BaseController {
|
|||
try {
|
||||
WmImNoticeIEntity wmImNoticeIEntity = systemService.get(WmImNoticeIEntity.class, wmInQmI.getImNoticeItem());
|
||||
if (wmImNoticeIEntity != null) {
|
||||
|
||||
if(!wmUtil.checkys(wmImNoticeIEntity.getGoodsCode(),wmInQmI.getProData())){
|
||||
j.setSuccess(false);
|
||||
message = "超过允收期";
|
||||
return j;
|
||||
}
|
||||
|
||||
if ("n".equals(ResourceUtil.getConfigByName("chaoshou"))) {
|
||||
Long weiq = Long.parseLong(wmImNoticeIEntity
|
||||
.getGoodsCount())
|
||||
|
@ -999,7 +1006,11 @@ public class WmInQmIController extends BaseController {
|
|||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
if(!wmUtil.checkys(wmImNoticeIEntity.getGoodsCode(),wmInQmI.getProData())){
|
||||
D0.setErrorMsg("超过允收期");
|
||||
D0.setOK(false);
|
||||
return new ResponseEntity(D0, HttpStatus.OK);
|
||||
}
|
||||
if ("n".equals(ResourceUtil.getConfigByName("chaoshou"))) {
|
||||
Double weiq = Double.parseDouble(wmImNoticeIEntity
|
||||
.getGoodsCount())
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,8 +3,11 @@ package test;
|
|||
import com.sap.conn.jco.JCoTable;
|
||||
import com.zzjee.sap.SapRFC;
|
||||
import org.jeecgframework.codegenerate.window.CodeWindow;
|
||||
import org.jeecgframework.core.util.DateUtils;
|
||||
|
||||
import java.sql.SQLOutput;
|
||||
import java.text.ParseException;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -17,19 +20,24 @@ import java.util.Map;
|
|||
*/
|
||||
public class JeecgOneGUI {
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws ParseException {
|
||||
// CodeWindow codeWindow = new CodeWindow();
|
||||
// codeWindow.pack();
|
||||
try {
|
||||
SapRFC saprfc = SapRFC.getInstance();
|
||||
saprfc.prepare("ZZKMES_FM_PP112");
|
||||
saprfc.execCall();
|
||||
// saprfc.getParamTableList()
|
||||
JCoTable tab = saprfc.getParamTableList("ES_OUTPUT");
|
||||
System.out.print("rows:" + tab.getNumRows());
|
||||
} catch (Exception e) {
|
||||
System.out.print(e.getMessage());
|
||||
}
|
||||
// try {
|
||||
// SapRFC saprfc = SapRFC.getInstance();
|
||||
// saprfc.prepare("ZZKMES_FM_PP112");
|
||||
// saprfc.execCall();
|
||||
//// saprfc.getParamTableList()
|
||||
// JCoTable tab = saprfc.getParamTableList("ES_OUTPUT");
|
||||
// System.out.print("rows:" + tab.getNumRows());
|
||||
// } catch (Exception e) {
|
||||
// System.out.print(e.getMessage());
|
||||
// }
|
||||
|
||||
|
||||
Calendar now = DateUtils.getCalendar();
|
||||
Calendar scrq = DateUtils.parseCalendar("2021-04-05","yyyy-MM-dd");
|
||||
int rq = DateUtils.dateDiff('d',now,scrq);
|
||||
System.out.println(rq);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue