item,goods,item_group_list 新增和修改时添加了3301上报
This commit is contained in:
parent
75eaa22e62
commit
7e23b18705
|
|
@ -70,9 +70,6 @@ public class DictoryUtil {
|
|||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (content.isEmpty()){
|
||||
return new JSONArray();
|
||||
}
|
||||
JSONArray list = JSON.parseArray(content.toString());
|
||||
return list;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ public class ItemController extends BaseController {
|
|||
public Result<?> createItem() {
|
||||
Item item = parmsUtil.getObject("data", Item.class);
|
||||
itemService.save(item);
|
||||
|
||||
return success();
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import com.syjiaer.clinic.server.mapper.inventory.InventoryMapper;
|
|||
import com.syjiaer.clinic.server.mapper.social.SocialDirectoryMapper;
|
||||
import com.syjiaer.clinic.server.mapper.social.SocialDirectoryUpinfoMapper;
|
||||
import com.syjiaer.clinic.server.service.BaseService;
|
||||
import com.syjiaer.clinic.server.service.item.ItemService;
|
||||
import com.syjiaer.clinic.server.service.social.SocialDirectoryService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
@ -44,6 +45,8 @@ import java.util.Objects;
|
|||
|
||||
@Service
|
||||
public class GoodsService extends BaseService {
|
||||
@Autowired
|
||||
private ItemService itemService;
|
||||
@Autowired
|
||||
private GoodsMapper goodsMapper;
|
||||
@Autowired
|
||||
|
|
@ -132,6 +135,12 @@ public class GoodsService extends BaseService {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
//上传对照消息 3301
|
||||
if (goods.getHilistCode() != null){
|
||||
|
||||
itemService.call3301(goods.getHilistCode(),"goods","create");
|
||||
}
|
||||
return goods;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -133,6 +133,12 @@ public class ItemService extends BaseService {
|
|||
item.setPinyinFull(pinyin_full);
|
||||
item.setPinyinFirst(PinYinUtil.getPinyinFirstLetters(item.getName()).toUpperCase());
|
||||
itemMapper.insertOrUpdate(item);
|
||||
|
||||
//上传对照消息 3301
|
||||
if (item.getSocialCode() != null){
|
||||
this.call3301(item.getSocialCode(),"item","create");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -207,6 +213,12 @@ public class ItemService extends BaseService {
|
|||
item.setPinyinFull(pinyin_full);
|
||||
item.setPinyinFirst(PinYinUtil.getPinyinFirstLetters(item.getName()).toUpperCase());
|
||||
itemMapper.updateById(item);
|
||||
|
||||
|
||||
//上传对照消息 3301
|
||||
if (item.getSocialCode() != null){
|
||||
this.call3301(item.getSocialCode(),"item","create");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -325,8 +337,15 @@ public class ItemService extends BaseService {
|
|||
itemGroup.setItemId(itemInfo.getId());
|
||||
itemGroup.setDelFlag(false);
|
||||
itemGroupListMapper.insertOrUpdate(itemGroup);
|
||||
|
||||
//上传对照消息 3301
|
||||
if (itemGroup.getSocialCode() != null){
|
||||
this.call3301(itemGroup.getSocialCode(),"item_group_list","create");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
itemInfo.setUpdateDatetime(LocalDateTime.now());
|
||||
itemInfo.setUnitPrice(unitPrice);
|
||||
itemInfo.setPurchaseUnitPrice(purchaseUnitPrice);
|
||||
|
|
|
|||
Loading…
Reference in New Issue