manailin
2022-09-25 cfea88ee29569c14a58f18f375d117edbc096625
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
@@ -6,6 +6,7 @@
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.entity.ComMediateType;
import com.panzhihua.service_community.entity.ComSanshuoEvent;
@@ -54,7 +55,7 @@
     * */
    @PostMapping
    public R add(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
        //comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId());
        comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId());
        return commediateTypeService.addOrUpdate(comMediateTypeDTO);
    }
@@ -63,7 +64,7 @@
     * */
    @PutMapping
    public R update(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
        //comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId());
        comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId());
        return commediateTypeService.addOrUpdate(comMediateTypeDTO);
    }
@@ -75,7 +76,8 @@
        ComMediateType comMediateType = commediateTypeService.getById(id);
        comMediateType.setDeleteFlag(true);
        comMediateType.setEnabled(false);
        //comMediateType.setModifyUser(this.getLoginUserInfo().getUserId());
        comMediateType.setModifyUser(this.getLoginUserInfo().getUserId());
        return R.ok(commediateTypeService.updateById(comMediateType));
    }
}