Commit 0abb3228 by zhengxj

finish 服务项目定价为零提示 on 20200226 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25969 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 95459747
......@@ -37,6 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.glsx.common.utils.bean.BeanUtils;
import com.glsx.usercenter.exception.BusinessException;
import com.glsx.usercenter.mapper.SysUserServiceFeeMapper;
import com.glsx.usercenter.pojo.user.SysUserServiceFee;
import com.glsx.usercenter.service.IUserServicefeeService;
......@@ -103,6 +104,8 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService {
sysUserServiceFee.setServiceFee(new BigDecimal(item.split(",")[1]));
sysUserServiceFee.setFeeType(com.glsx.usercenter.constants.Constants.FEE_TYPE_INSTALL);
list.add(sysUserServiceFee);
} else {
throw BusinessException.create("服务项目定价必须大于0!");
}
if (BigDecimal.ZERO.compareTo(new BigDecimal(item.split(",")[2])) < 0) {
......@@ -112,6 +115,8 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService {
sysUserServiceFee2.setServiceFee(new BigDecimal(item.split(",")[2]));
sysUserServiceFee2.setFeeType(com.glsx.usercenter.constants.Constants.FEE_ORDER_DISMANTLE);
list.add(sysUserServiceFee2);
} else {
throw BusinessException.create("服务项目定价必须大于0!");
}
if (BigDecimal.ZERO.compareTo(new BigDecimal(item.split(",")[3])) < 0) {
......@@ -120,6 +125,8 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService {
sysUserServiceFee3.setServiceFee(new BigDecimal(item.split(",")[3]));
sysUserServiceFee3.setFeeType(com.glsx.usercenter.constants.Constants.FEE_TYPE_REPAIR);
list.add(sysUserServiceFee3);
} else {
throw BusinessException.create("服务项目定价必须大于0!");
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!