master
erzhongxmu@hotmail.com 2018-10-31 17:02:35 +08:00
parent b026072ff6
commit 1b09ddb741
4 changed files with 175 additions and 173 deletions

View File

@ -215,7 +215,7 @@ public class yyUtil {
wmi.setGoodsName(mvgoods.getGoodsName());
wmi.setGoodsUnit(mvgoods.getShlDanWei());
}
wmi.setGoodsCount(Double.toString(new BigDecimal(proddet.get("iQuantity").toString()).setScale(2, RoundingMode.UP).doubleValue()));
wmi.setGoodsCount(Long.toString(new BigDecimal(proddet.get("iQuantity").toString()).setScale(0, RoundingMode.UP).longValue()));
// wmi.setGoodsPrdData(billResult.getData().get(s).getDetail().get(k).getPdProdmadedate2User());
// wmi.setOtherId();
wmImNoticeIListnew.add(wmi);
@ -279,7 +279,7 @@ public class yyUtil {
wmi.setGoodsName(mvgoods.getGoodsName());
wmi.setGoodsUnit(mvgoods.getShlDanWei());
}
wmi.setGoodsQua(Double.toString(new BigDecimal(proddet.get("iQuantity").toString()).setScale(0, RoundingMode.UP).doubleValue()));
wmi.setGoodsQua(Long.toString(new BigDecimal(proddet.get("iQuantity").toString()).setScale(0, RoundingMode.UP).longValue()));
wmomNoticeIListnew.add(wmi);
}
wmOmNoticeHService.addMain(wmOmNoticeH, wmomNoticeIListnew);

View File

@ -85,7 +85,7 @@
}else{
var url = "mdGoodsController.do?doGet&formDate="+batchdate;
$.ajax({
async : false,
async : true,
cache : false,
type : 'POST',
url : url,// 请求的action路径

View File

@ -8,6 +8,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;
import com.zzjee.wmutil.uasUtil;
import com.zzjee.wmutil.yyUtil;
import org.jeecgframework.AbstractUnitTest;
import org.jeecgframework.core.util.DateUtils;
import org.junit.Before;
@ -39,19 +40,20 @@ public class ControllerTestDemo extends AbstractUnitTest{
//测试登录
@Test
public void testLogin() throws Exception {
Map<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("formDate","2017-01-01");
paramMap.put("lastUpdateTime","2017-01-01");
paramMap.put("pi_class","采购验收单");
uasUtil.getProduct(paramMap);
uasUtil.getCustomer(paramMap);
uasUtil.getVendor(paramMap);
uasUtil.getWarehouse(paramMap);
uasUtil.getBil(paramMap);
yyUtil.getProduct();
// Map<String, Object> paramMap = new HashMap<String, Object>();
// paramMap.put("formDate","2017-01-01");
// paramMap.put("lastUpdateTime","2017-01-01");
// paramMap.put("pi_class","采购验收单");
// uasUtil.getProduct(paramMap);
//
// uasUtil.getCustomer(paramMap);
//
// uasUtil.getVendor(paramMap);
//
// uasUtil.getWarehouse(paramMap);
//
// uasUtil.getBil(paramMap);
// session.setAttribute("randCode", "1234"); //设置登录验证码
// this.mockMvc.perform(post("/loginController.do?checkuser=")
// .param("userName","admin")