|
|
|
@ -24,6 +24,9 @@ import com.logpm.basic.mapper.BasicPrintTemplateMapper;
|
|
|
|
|
import com.logpm.basic.service.IBasicPrintTemplateService; |
|
|
|
|
import com.logpm.basic.vo.BasicPrintTemplateVO; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.util.Collection; |
|
|
|
@ -54,5 +57,14 @@ public class BasicPrintTemplateServiceImpl extends BaseServiceImpl<BasicPrintTem
|
|
|
|
|
return basicPrintTemplateList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean save(BasicPrintTemplateEntity entity) { |
|
|
|
|
if (Func.isEmpty(entity)){ |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
//添加创建人编号
|
|
|
|
|
entity.setFounder(user.getUserId().toString()); |
|
|
|
|
return super.save(entity); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|