dev
袁野 6 months ago
parent 19a4bafbf9
commit 26e1d655d6
  1. 2
      bweb/src/main/java/com/bweb/controller/audit/AuditController.java
  2. 27
      bweb/src/main/java/com/bweb/controller/goods/GoodsController.java
  3. 2
      service/src/main/java/com/hfkj/service/audit/impl/AuditMsgServiceImpl.java

@ -110,7 +110,7 @@ public class AuditController {
GoodsMsg goodsMsg = goodsMsgService.queryDetail(auditMsg.getSubmitObjectId());
goodsMsg.setStatus(1);
goodsMsg.setStatus(body.getStatus() == 0 ? 2 : 1);
goodsMsg.setUpdateTime(new Date());
goodsMsgService.update(goodsMsg);

@ -157,7 +157,7 @@ public class GoodsController {
|| body.getGoodsId() == null
|| body.getOriginalPrice() == null
|| body.getSalePrice() == null
|| body.getPurLimit() == null
// || body.getPurLimit() == null
|| body.getStock() == null
|| body.getSalesEndTime() == null
|| StringUtils.isBlank(body.getShowImg())
@ -263,9 +263,23 @@ public class GoodsController {
Map<String , Object> map = new HashMap<>();
map.put("title", title);
map.put("goodsType", goodsType);
if (goodsType != null) {
GoodsType goodsType1 = goodsTypeService.queryDetail(goodsType);
if (goodsType1.getParentId() == null) {
map.put("goodsTypeParent", goodsType);
} else {
map.put("goodsType", goodsType);
}
}
map.put("goodsBrand", goodsBrand);
map.put("merId", userModel.getAccount().getId());
if (userModel.getAccount().getObjectType().equals(SecUserObjectTypeEnum.type2.getCode())) {
map.put("merId", userModel.getAccount().getId());
}
map.put("type", type);
map.put("status", status);
@ -278,7 +292,6 @@ public class GoodsController {
}
}
@RequestMapping(value="/getGoodsSpecsList",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询商品规格列表")
@ -366,6 +379,7 @@ public class GoodsController {
public ResponseData deleteGoodsSpecs(@RequestParam(value = "id" , required = false) Long id) {
try {
goodsSpecsService.delete(id , false);
return ResponseMsgUtil.success("删除成功");
@ -385,6 +399,11 @@ public class GoodsController {
SessionObject sessionObject = userCenter.getSessionObject(request);
SecUserSessionObject userModel = (SecUserSessionObject) sessionObject.getObject();
if (userModel.getAccount().getObjectType() != SecUserObjectTypeEnum.type2.getCode()) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.ROLE_NOT_PERMISSIONS, "");
}
GoodsMsg goodsMsg = goodsMsgService.queryDetail(id);
if (goodsMsg.getStatus() == 1) {

@ -53,6 +53,8 @@ public class AuditMsgServiceImpl implements AuditMsgService {
if (MapUtils.getInteger(map, "status") != null) {
criteria.andStatusEqualTo(MapUtils.getInteger(map, "status"));
}
example.setOrderByClause("create_time desc");
return auditMsgMapper.selectByExample(example) ;
}
}

Loading…
Cancel
Save