Explorar el Código

[商场][修改]:商场id变成mall_id

release_toaliyun_real
gongbiao hace 7 años
padre
commit
bae48a1a49
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      mallinkService/src/main/java/com/simple/service/impl/WxMallServiceImpl.java

+ 3
- 2
mallinkService/src/main/java/com/simple/service/impl/WxMallServiceImpl.java Ver fichero

@@ -29,10 +29,11 @@ public class WxMallServiceImpl implements WxMallService {

@Override
public void saveOrUpdate(WxMall record) {
if (record.getId() == null) {
if (record.getMallId() == null) {
//record.setId(UUID.randomUUID().toString().replaceAll("-", ""));
final IdWorker idWorker = IdWorker.get();
record.setId(idWorker.nextId());
record.setMallId(idWorker.nextId());
record.setTenantId(String.valueOf(idWorker.nextId()));
wxMallMapper.insertSelective(record);
} else {
wxMallMapper.updateByPrimaryKeySelective(record);


Cargando…
Cancelar
Guardar