|
@@ -163,7 +163,7 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
// 初始商品分类
|
|
|
String typeStr = "";
|
|
|
Integer secondHandType = second.getSecondHandType();
|
|
|
- if (1 == secondHandType){
|
|
|
+ if (1 == secondHandType) {
|
|
|
typeStr += "二手仪器";
|
|
|
} else if (2 == secondHandType) {
|
|
|
typeStr += "临期产品";
|
|
@@ -210,6 +210,7 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
* (fileType字符串逗号拼接)
|
|
|
* ,"checkCode" : 验证码
|
|
|
* ,"authenticationBackImage" : 身份证背面照片
|
|
|
+ * ,"cardNumber" : 收款卡号
|
|
|
* }
|
|
|
* @param headers HttpHeaders
|
|
|
*/
|
|
@@ -269,6 +270,7 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
String source = secondDto.getSource();
|
|
|
Integer townId = secondDto.getTownId();
|
|
|
String address = secondDto.getAddress();
|
|
|
+ String cardNumber = secondDto.getCardNumber();
|
|
|
// 此图片为逗号隔开的多张数据
|
|
|
String image = secondDto.getImage();
|
|
|
String maturityYears = secondDto.getMaturityYears();
|
|
@@ -287,7 +289,7 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
if (StringUtils.isEmpty(secondHandType)) {
|
|
|
return ResponseJson.error("参数异常:请选择分类");
|
|
|
} else if (StringUtils.equals("1", secondHandType)) {
|
|
|
- if (null==instrumentType) {
|
|
|
+ if (null == instrumentType) {
|
|
|
return ResponseJson.error("参数异常:请完善仪器分类");
|
|
|
}
|
|
|
} else if (StringUtils.equals("2", secondHandType)) {
|
|
@@ -332,6 +334,9 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
if (StringUtils.isEmpty(source)) {
|
|
|
return ResponseJson.error("参数异常:请输入发布来源");
|
|
|
}
|
|
|
+ if (StringUtils.isBlank(cardNumber)) {
|
|
|
+ return ResponseJson.error("参数异常:请输入收款卡号");
|
|
|
+ }
|
|
|
// 保存二手商品
|
|
|
return saveSecondHandProduct(secondDto);
|
|
|
}
|