Commit 2eedf7e6 by wangweidong

土工平台修改

parent 7b48b052
......@@ -46,11 +46,11 @@ public class SoilReceiveLocationServiceImpl extends BaseServiceImpl<SoilReceiveL
RestAssert.fail(StringUtils.isBlank(soilReceiveLocation.getCode()),"请填写位置编号");
RestAssert.fail(StringUtils.isBlank(soilReceiveLocation.getName()),"请填写收样位置");
int countName = super.count(Condition.create().eq("name",soilReceiveLocation.getName()));
if (countName>=0){
if (countName>0){
RestAssert.fail("收样位置重复");
}
int countCode = super.count(Condition.create().eq("code",soilReceiveLocation.getCode()));
if (countCode>=0){
if (countCode>0){
RestAssert.fail("收样位置编号重复");
}
return save(soilReceiveLocation);
......
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