|
|
|
@ -7,7 +7,6 @@ import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
|
|
|
|
|
import com.logpm.basicdata.service.IBasicdataCodeRecordService; |
|
|
|
|
import com.logpm.basicdata.service.IBasicdataCodeService; |
|
|
|
|
import com.logpm.basicdata.service.IBasicdataWarehouseService; |
|
|
|
|
import io.swagger.models.auth.In; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
|
|
import org.springblade.common.constant.CodeDesEnum; |
|
|
|
@ -201,9 +200,9 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService {
|
|
|
|
|
|
|
|
|
|
// 获取月份(注意月份从0开始计数)
|
|
|
|
|
Integer month = calendar.get(Calendar.MONTH) + 1; |
|
|
|
|
Integer day = calendar.get(Calendar.DAY_OF_MONTH); |
|
|
|
|
// Integer day = calendar.get(Calendar.DAY_OF_MONTH);
|
|
|
|
|
|
|
|
|
|
BasicdataCodeRecordEntity basicdataCodeRecordEntity = basicdataCodeRecordService.findEntityByCodeTypeAndWarehouseCodeAndYearAndMonth(type, basicdataWarehouseEntity.getWarehouseCode(), year + "", month + "", day + ""); |
|
|
|
|
BasicdataCodeRecordEntity basicdataCodeRecordEntity = basicdataCodeRecordService.findEntityByCodeTypeAndWarehouseCodeAndYearAndMonth(type, basicdataWarehouseEntity.getWarehouseCode(), year + "", month + ""); |
|
|
|
|
|
|
|
|
|
if (Objects.isNull(basicdataCodeRecordEntity)) { |
|
|
|
|
basicdataCodeRecordEntity = new BasicdataCodeRecordEntity(); |
|
|
|
@ -213,7 +212,7 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService {
|
|
|
|
|
basicdataCodeRecordEntity.setWarehouseCode(basicdataWarehouseEntity.getWarehouseCode()); |
|
|
|
|
basicdataCodeRecordEntity.setYear(year + ""); |
|
|
|
|
basicdataCodeRecordEntity.setMonth(month + ""); |
|
|
|
|
basicdataCodeRecordEntity.setDay(day + ""); |
|
|
|
|
// basicdataCodeRecordEntity.setDay(day + "");
|
|
|
|
|
basicdataCodeRecordEntity.setNum(0); |
|
|
|
|
basicdataCodeRecordService.save(basicdataCodeRecordEntity); |
|
|
|
|
} |
|
|
|
|