Commit c56d3dcd by 宋祥

Merge branch 'dev-sx' of http://git.pseer.com:8800/platform/hg-smart into dev

parents 442a6368 f327884e
...@@ -114,7 +114,6 @@ public class ServiceHGKC008 extends ServiceBase { ...@@ -114,7 +114,6 @@ public class ServiceHGKC008 extends ServiceBase {
fKc008.setApplyCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.RECEIVE_CODE)); fKc008.setApplyCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.RECEIVE_CODE));
fKc008.setStatus(HGConstant.ProductStatus.WTJ); fKc008.setStatus(HGConstant.ProductStatus.WTJ);
DaoUtils.insert(HGKC008.INSERT, fKc008); DaoUtils.insert(HGKC008.INSERT, fKc008);
// EiInfoUtils.addBlock(inInfo, "entity", hgkc008, HGKC008.class);
} }
} }
inInfo = this.query(inInfo); inInfo = this.query(inInfo);
...@@ -127,6 +126,35 @@ public class ServiceHGKC008 extends ServiceBase { ...@@ -127,6 +126,35 @@ public class ServiceHGKC008 extends ServiceBase {
} }
/** /**
* 移动端
*
* @param inInfo
* @return
*/
public EiInfo saveApp(EiInfo inInfo) {
try {
HGKC008 fKc008 = MapUtils.toDaoEPBase(inInfo, HGKC008.class);
this.checkSaveData(fKc008);
if (Objects.nonNull(fKc008.getId()) && fKc008.getId() != 0) {
DaoUtils.update(HGKC008.UPDATE, fKc008);
//同时修改子表的仓库数据、公司数据
HGKCTools.HgKc008A.updateWhCodeByReceiveId(fKc008);
} else {
//生成生产领料编号
fKc008.setApplyCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.RECEIVE_CODE));
fKc008.setStatus(HGConstant.ProductStatus.WTJ);
DaoUtils.insert(HGKC008.INSERT, fKc008);
EiInfoUtils.addBlock(inInfo, "entity", fKc008, HGKC008.class);
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 校验保存的数据 * 校验保存的数据
* *
* @param hgkc008 * @param hgkc008
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment