|
@@ -2,6 +2,7 @@ package com.sooka.jnb.cooperative.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
+import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.sooka.jnb.cooperative.domain.Cooperative;
|
|
|
import com.sooka.jnb.cooperative.mapper.CooperativeMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -54,6 +55,8 @@ public class CooperativeServiceImpl implements ICooperativeService
|
|
|
@Override
|
|
|
public int insertCooperative(Cooperative jnbSupplyAndMarketingCooperative)
|
|
|
{
|
|
|
+ String operatorName = SecurityUtils.getUsername();
|
|
|
+ jnbSupplyAndMarketingCooperative.setCreateBy(operatorName);
|
|
|
jnbSupplyAndMarketingCooperative.setCreateTime(DateUtils.getNowDate());
|
|
|
return cooperativeMapper.insertCooperative(jnbSupplyAndMarketingCooperative);
|
|
|
}
|
|
@@ -67,6 +70,8 @@ public class CooperativeServiceImpl implements ICooperativeService
|
|
|
@Override
|
|
|
public int updateCooperative(Cooperative jnbSupplyAndMarketingCooperative)
|
|
|
{
|
|
|
+ String operatorName = SecurityUtils.getUsername();
|
|
|
+ jnbSupplyAndMarketingCooperative.setUpdateBy(operatorName);
|
|
|
jnbSupplyAndMarketingCooperative.setUpdateTime(DateUtils.getNowDate());
|
|
|
return cooperativeMapper.updateCooperative(jnbSupplyAndMarketingCooperative);
|
|
|
}
|