Commit 625ef753 by 江和松

单据日期不应该去除横杠,前端控制即可

parent d08c38aa
...@@ -79,8 +79,6 @@ public class ServiceHPKC001 extends ServiceBase { ...@@ -79,8 +79,6 @@ public class ServiceHPKC001 extends ServiceBase {
insertEntity.setMaterialTypeName(InventTypeEnun.getNameByCode(insertEntity.getMaterialType())); insertEntity.setMaterialTypeName(InventTypeEnun.getNameByCode(insertEntity.getMaterialType()));
// 生成单据号 // 生成单据号
insertEntity.setDocumentCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPKC001_NUMBER)); insertEntity.setDocumentCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPKC001_NUMBER));
// 去除日期字符串中的-
insertEntity.setDocumentTime(StringUtil.removeHorizontalLine(insertEntity.getDocumentTime()));
insertEntity.setStatus(1); insertEntity.setStatus(1);
insertEntity.setApprovalStatus(0); insertEntity.setApprovalStatus(0);
dao.insert("HPKC001.insert", insertEntity); dao.insert("HPKC001.insert", insertEntity);
......
...@@ -79,8 +79,6 @@ public class ServiceHPKC002 extends ServiceBase { ...@@ -79,8 +79,6 @@ public class ServiceHPKC002 extends ServiceBase {
insertEntity.setMaterialTypeName(InventTypeEnun.getNameByCode(insertEntity.getMaterialType())); insertEntity.setMaterialTypeName(InventTypeEnun.getNameByCode(insertEntity.getMaterialType()));
// 生成单据号 // 生成单据号
insertEntity.setDocumentCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPKC002_NUMBER)); insertEntity.setDocumentCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPKC002_NUMBER));
// 去除日期字符串中的-
insertEntity.setDocumentTime(StringUtil.removeHorizontalLine(insertEntity.getDocumentTime()));
insertEntity.setStatus(1); insertEntity.setStatus(1);
insertEntity.setApprovalStatus(0); insertEntity.setApprovalStatus(0);
dao.insert("HPKC002.insert", insertEntity); dao.insert("HPKC002.insert", insertEntity);
......
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