Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | @Tag(name = "æ°ä½ç®¡è·¯äº§è½è§å", description = "æ°ä½ç®¡è·¯äº§è½è§åæ¥å£") |
| | | @RestController |
| | | @RequestMapping("/gasPipelineCapacityPlan") |
| | | public class ApsGasPipelineCapacityPlanController extends BaseController |
| | | { |
| | | public class ApsGasPipelineCapacityPlanController extends BaseController { |
| | | @Autowired |
| | | private IApsGasPipelineCapacityPlanService apsGasPipelineCapacityPlanService; |
| | | |
| | |
| | | @Operation(summary = "æ¥è¯¢æ°ä½ç®¡è·¯äº§è½è§åå表", description = "å页æ¥è¯¢") |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public TableDataInfo list(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | // startPage(); |
| | | List<ApsGasPipelineCapacityPlan> list = apsGasPipelineCapacityPlanService.selectApsGasPipelineCapacityPlanList(apsGasPipelineCapacityPlan); |
| | | ApsStandardProcess apsStandardProcess = new ApsStandardProcess(); |
| | |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:export") |
| | | @Log(title = "æ°ä½ç®¡è·¯äº§è½è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public void export(HttpServletResponse response, ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | List<ApsGasPipelineCapacityPlan> list = apsGasPipelineCapacityPlanService.selectApsGasPipelineCapacityPlanList(apsGasPipelineCapacityPlan); |
| | | ExcelUtil<ApsGasPipelineCapacityPlan> util = new ExcelUtil<ApsGasPipelineCapacityPlan>(ApsGasPipelineCapacityPlan.class); |
| | | util.exportExcel(response, list, "æ°ä½ç®¡è·¯äº§è½è§åæ°æ®"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å¤å¶æ°ä½ç®¡è·¯äº§è½è§å |
| | | */ |
| | | @Operation(summary = "å¤å¶æ°ä½ç®¡è·¯äº§è½è§å", description = "å¤å¶") |
| | | // @RequiresPermissions("aps:gasPipelineCapacityPlan:copy") |
| | | @Log(title = "å¤å¶æ°ä½ç®¡è·¯äº§è½è§å", businessType = BusinessType.INSERT) |
| | | @PutMapping("/copy") |
| | | public AjaxResult copy( |
| | | // æ ¼å¼ï¼yyyy-MM |
| | | @RequestParam String date, |
| | | @RequestParam String factory, |
| | | @RequestParam String major, |
| | | // æ ¼å¼ï¼yyyy-MM |
| | | @RequestParam String toStart, |
| | | // æ ¼å¼ï¼yyyy-MM |
| | | @RequestParam String toEnd) { |
| | | apsGasPipelineCapacityPlanService.copyPlan(date, factory, major, toStart, toEnd); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Operation(summary = "è·åæ°ä½ç®¡è·¯äº§è½è§å详ç»ä¿¡æ¯", description = "æ ¹æ®idè·å") |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(apsGasPipelineCapacityPlanService.selectApsGasPipelineCapacityPlanById(id)); |
| | | } |
| | | |
| | |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:add") |
| | | @Log(title = "æ°ä½ç®¡è·¯äº§è½è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody List<ApsGasPipelineCapacityPlan> apsGasPipelineCapacityPlan) |
| | | { |
| | | public AjaxResult add(@RequestBody List<ApsGasPipelineCapacityPlan> apsGasPipelineCapacityPlan) { |
| | | apsGasPipelineCapacityPlan.forEach(apsGasPipelineCapacityPlanTemp -> { |
| | | if(apsGasPipelineCapacityPlanTemp.getId()==null){ |
| | | apsGasPipelineCapacityPlanTemp.setCreateBy(SecurityUtils.getUsername()); |
| | |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:edit") |
| | | @Log(title = "æ°ä½ç®¡è·¯äº§è½è§å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public AjaxResult edit(@RequestBody ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | return toAjax(apsGasPipelineCapacityPlanService.updateApsGasPipelineCapacityPlan(apsGasPipelineCapacityPlan)); |
| | | } |
| | | |
| | |
| | | @RequiresPermissions("aps:gasPipelineCapacityPlan:remove") |
| | | @Log(title = "æ°ä½ç®¡è·¯äº§è½è§å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(apsGasPipelineCapacityPlanService.deleteApsGasPipelineCapacityPlanByIds(ids)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @SneakyThrows |
| | | @Operation(summary = "ä¸è½½æ°ä½å·¥åæ°æ®å¯¼å
¥æ¨¡æ¿", description = "ä¸è½½æ°ä½å·¥åæ°æ®å¯¼å
¥æ¨¡æ¿") |
| | | @RequiresPermissions("gasPipeline:mo:template") |
| | | @Log(title = "ä¸è½½æ°ä½å·¥åæ°æ®å¯¼å
¥æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | // @RequiresPermissions("gasPipeline:mo:template") |
| | | // @Log(title = "ä¸è½½æ°ä½å·¥åæ°æ®å¯¼å
¥æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/template") |
| | | public ResponseEntity<ByteArrayResource> exportTemplate() { |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/ä¸ä¼ æ°ä½å·¥åæ°æ®æ¨¡æ¿.xlsx"); |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/æ°ä½å·¥åæ°æ®æ¨¡æ¿v1.0.xlsx"); |
| | | ByteArrayResource resource = new ByteArrayResource(file); |
| | | return ResponseEntity.ok() |
| | | .header("Access-Control-Expose-Headers", HttpHeaders.CONTENT_DISPOSITION) |
| | | .header(HttpHeaders.CONTENT_DISPOSITION, |
| | | String.format("attachment;filename=%s", URLEncoder.encode("æ°ä½å·¥åæ°æ®æ¨¡æ¿.xlsx", StandardCharsets.UTF_8))) |
| | | .header(HttpHeaders.CONTENT_TYPE, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") |
| | |
| | | */ |
| | | @SneakyThrows |
| | | @Operation(summary = "ä¸è½½æ°ä½é¢æµæ°æ®å¯¼å
¥æ¨¡æ¿", description = "ä¸è½½æ°ä½é¢æµæ°æ®å¯¼å
¥æ¨¡æ¿") |
| | | @RequiresPermissions("gasPipeline:prediction:template") |
| | | @Log(title = "ä¸è½½æ°ä½é¢æµæ°æ®å¯¼å
¥æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | // @RequiresPermissions("gasPipeline:prediction:template") |
| | | // @Log(title = "ä¸è½½æ°ä½é¢æµæ°æ®å¯¼å
¥æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/template") |
| | | public ResponseEntity<ByteArrayResource> exportTemplate() { |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/ä¸ä¼ æ°ä½é¢æµæ°æ®æ¨¡æ¿.xlsx"); |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/æ°ä½é¢æµæ°æ®æ¨¡æ¿v1.0.xlsx"); |
| | | ByteArrayResource resource = new ByteArrayResource(file); |
| | | return ResponseEntity.ok() |
| | | .header("Access-Control-Expose-Headers", HttpHeaders.CONTENT_DISPOSITION) |
| | | .header(HttpHeaders.CONTENT_DISPOSITION, |
| | | String.format("attachment;filename=%s", URLEncoder.encode("æ°ä½é¢æµæ°æ®æ¨¡æ¿.xlsx", StandardCharsets.UTF_8))) |
| | | .header(HttpHeaders.CONTENT_TYPE, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") |
| | |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import org.springframework.data.annotation.Id; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | |
| | | * @author hjy |
| | | * @date 2025-04-24 |
| | | */ |
| | | @Data |
| | | @Schema(description = "æ°ä½ç®¡è·¯äº§è½è§åå®ä½ç±»") |
| | | public class ApsGasPipelineCapacityPlan extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @TableId(type = IdType.AUTO) |
| | | /** 主é®id */ |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING) |
| | | @Schema(description = "主é®id", type = "Long") |
| | | private Long id; |
| | | |
| | |
| | | @Schema(description = "æ¥äº§åºåä½", type = "String") |
| | | private String dayProduceUnit; |
| | | |
| | | |
| | | /** äººåæ°é */ |
| | | @Excel(name = "äººåæ°é") |
| | | @Schema(description = "äººåæ°é", type = "BigDecimal") |
| | |
| | | @Schema(description = "å·¥å代ç ", type = "String") |
| | | private String orgCode; |
| | | |
| | | |
| | | /** è½¦é´ */ |
| | | @Excel(name = "车é´") |
| | | @Schema(description = "车é´", type = "String") |
| | | private String workshop; |
| | | |
| | | public void setOrgCode(String orgCode) |
| | | { |
| | | this.orgCode = orgCode; |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import com.aps.core.domain.ApsGasPipelineCapacityPlan; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | |
| | | * @date 2025-04-24 |
| | | */ |
| | | @Mapper |
| | | public interface ApsGasPipelineCapacityPlanMapper |
| | | public interface ApsGasPipelineCapacityPlanMapper extends BaseMapper<ApsGasPipelineCapacityPlan> |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ°ä½ç®¡è·¯äº§è½è§å |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsGasPipelineCapacityPlanByIds(Long[] ids); |
| | | |
| | | void deleteByDateAndFactory(String year, String month, String factory, String major); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsGasPipelineCapacityPlanById(Long id); |
| | | |
| | | void copyPlan(String date, String factory, String major, String toStart, String toEnd); |
| | | } |
| | |
| | | import com.aps.core.domain.ApsGasPipelineCapacityPlan; |
| | | import com.aps.core.mapper.ApsGasPipelineCapacityPlanMapper; |
| | | import com.aps.core.service.IApsGasPipelineCapacityPlanService; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @date 2025-04-24 |
| | | */ |
| | | @Service |
| | | public class ApsGasPipelineCapacityPlanServiceImpl implements IApsGasPipelineCapacityPlanService |
| | | { |
| | | public class ApsGasPipelineCapacityPlanServiceImpl implements IApsGasPipelineCapacityPlanService { |
| | | @Autowired |
| | | private ApsGasPipelineCapacityPlanMapper apsGasPipelineCapacityPlanMapper; |
| | | |
| | |
| | | * @return æ°ä½ç®¡è·¯äº§è½è§å |
| | | */ |
| | | @Override |
| | | public ApsGasPipelineCapacityPlan selectApsGasPipelineCapacityPlanById(Long id) |
| | | { |
| | | public ApsGasPipelineCapacityPlan selectApsGasPipelineCapacityPlanById(Long id) { |
| | | return apsGasPipelineCapacityPlanMapper.selectApsGasPipelineCapacityPlanById(id); |
| | | } |
| | | |
| | |
| | | * @return æ°ä½ç®¡è·¯äº§è½è§å |
| | | */ |
| | | @Override |
| | | public List<ApsGasPipelineCapacityPlan> selectApsGasPipelineCapacityPlanList(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public List<ApsGasPipelineCapacityPlan> selectApsGasPipelineCapacityPlanList(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | return apsGasPipelineCapacityPlanMapper.selectApsGasPipelineCapacityPlanList(apsGasPipelineCapacityPlan); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsGasPipelineCapacityPlan(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public int insertApsGasPipelineCapacityPlan(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | apsGasPipelineCapacityPlan.setCreateTime(DateUtils.getNowDate()); |
| | | apsGasPipelineCapacityPlan.setCreateBy(SecurityUtils.getUsername()); |
| | | return apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(apsGasPipelineCapacityPlan); |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsGasPipelineCapacityPlan(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) |
| | | { |
| | | public int updateApsGasPipelineCapacityPlan(ApsGasPipelineCapacityPlan apsGasPipelineCapacityPlan) { |
| | | apsGasPipelineCapacityPlan.setUpdateTime(DateUtils.getNowDate()); |
| | | apsGasPipelineCapacityPlan.setUpdateBy(SecurityUtils.getUsername()); |
| | | return apsGasPipelineCapacityPlanMapper.updateApsGasPipelineCapacityPlan(apsGasPipelineCapacityPlan); |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsGasPipelineCapacityPlanByIds(Long[] ids) |
| | | { |
| | | public int deleteApsGasPipelineCapacityPlanByIds(Long[] ids) { |
| | | return apsGasPipelineCapacityPlanMapper.deleteApsGasPipelineCapacityPlanByIds(ids); |
| | | } |
| | | |
| | |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsGasPipelineCapacityPlanById(Long id) |
| | | { |
| | | public int deleteApsGasPipelineCapacityPlanById(Long id) { |
| | | return apsGasPipelineCapacityPlanMapper.deleteApsGasPipelineCapacityPlanById(id); |
| | | } |
| | | |
| | | @SneakyThrows |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void copyPlan(String date, String factory, String major, String toStart, String toEnd) { |
| | | |
| | | String[] dtSrc = date.split("-"); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); |
| | | Calendar dtStart = Calendar.getInstance(); |
| | | dtStart.setTime(sdf.parse(toStart)); |
| | | dtStart.set(Calendar.DAY_OF_MONTH, 1); |
| | | Calendar dtEnd = Calendar.getInstance(); |
| | | dtEnd.setTime(sdf.parse(toEnd)); |
| | | dtEnd.set(Calendar.DAY_OF_MONTH, 2); |
| | | |
| | | ApsGasPipelineCapacityPlan plan = new ApsGasPipelineCapacityPlan(); |
| | | plan.setYear(Integer.valueOf(dtSrc[0]).toString()); |
| | | plan.setMonth(Integer.valueOf(dtSrc[1]).toString()); |
| | | plan.setOrgCode(factory); |
| | | plan.setMajor(major); |
| | | List<ApsGasPipelineCapacityPlan> templatePlans = apsGasPipelineCapacityPlanMapper.selectApsGasPipelineCapacityPlanList(plan); |
| | | templatePlans.forEach(p -> { |
| | | p.setCreateBy(SecurityUtils.getUsername()); |
| | | p.setCreateTime(new Date()); |
| | | p.setUpdateBy(null); |
| | | p.setUpdateTime(null); |
| | | // apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(p); |
| | | }); |
| | | |
| | | while (dtStart.before(dtEnd)) { |
| | | String year = dtStart.get(Calendar.YEAR) + ""; |
| | | String month = (dtStart.get(Calendar.MONTH) + 1) + ""; |
| | | apsGasPipelineCapacityPlanMapper.deleteByDateAndFactory( |
| | | year, |
| | | month, |
| | | factory, |
| | | major |
| | | ); |
| | | templatePlans.forEach(p -> { |
| | | p.setId(null); |
| | | p.setYear(year); |
| | | p.setMonth(month); |
| | | // apsGasPipelineCapacityPlanMapper.insertApsGasPipelineCapacityPlan(p); |
| | | }); |
| | | apsGasPipelineCapacityPlanMapper.insert(templatePlans); |
| | | |
| | | dtStart.add(Calendar.MONTH, 1); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <result property="year" column="year" /> |
| | | <result property="month" column="month" /> |
| | | <result property="major" column="major" /> |
| | | <result property="workshop" column="workshop" /> |
| | | <result property="dayProduceType" column="day_produce_type" /> |
| | | <result property="dayProduceNum" column="day_produce_num" /> |
| | | <result property="dayProduceUnit" column="day_produce_unit" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsGasPipelineCapacityPlanVo"> |
| | | select id, process_name, year, month, major, day_produce_type, day_produce_num, day_produce_unit, personnel_number, day_produce_all_num, days, month_produce_all_num, remark, create_by, create_time, update_by, update_time, org_code from aps_gas_pipeline_capacity_plan |
| | | select id, process_name, year, month, major, workshop, day_produce_type, day_produce_num, day_produce_unit, personnel_number, day_produce_all_num, days, month_produce_all_num, remark, create_by, create_time, update_by, update_time, org_code from aps_gas_pipeline_capacity_plan |
| | | </sql> |
| | | |
| | | <select id="selectApsGasPipelineCapacityPlanList" parameterType="com.aps.core.domain.ApsGasPipelineCapacityPlan" resultMap="ApsGasPipelineCapacityPlanResult"> |
| | |
| | | <if test="year != null and year != ''"> and year = #{year}</if> |
| | | <if test="month != null and month != ''"> and month = #{month}</if> |
| | | <if test="major != null and major != ''"> and major = #{major}</if> |
| | | <if test="workshop != null and workshop != ''"> and workshop = #{workshop}</if> |
| | | <if test="dayProduceType != null and dayProduceType != ''"> and day_produce_type = #{dayProduceType}</if> |
| | | <if test="dayProduceNum != null "> and day_produce_num = #{dayProduceNum}</if> |
| | | <if test="dayProduceUnit != null and dayProduceUnit != ''"> and day_produce_unit = #{dayProduceUnit}</if> |
| | |
| | | <if test="year != null">year,</if> |
| | | <if test="month != null">month,</if> |
| | | <if test="major != null">major,</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">day_produce_type,</if> |
| | | <if test="dayProduceNum != null">day_produce_num,</if> |
| | | <if test="dayProduceUnit != null">day_produce_unit,</if> |
| | |
| | | <if test="year != null">#{year},</if> |
| | | <if test="month != null">#{month},</if> |
| | | <if test="major != null">#{major},</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">#{dayProduceType},</if> |
| | | <if test="dayProduceNum != null">#{dayProduceNum},</if> |
| | | <if test="dayProduceUnit != null">#{dayProduceUnit},</if> |
| | |
| | | <if test="year != null">year = #{year},</if> |
| | | <if test="month != null">month = #{month},</if> |
| | | <if test="major != null">major = #{major},</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">day_produce_type = #{dayProduceType},</if> |
| | | <if test="dayProduceNum != null">day_produce_num = #{dayProduceNum},</if> |
| | | <if test="dayProduceUnit != null">day_produce_unit = #{dayProduceUnit},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <delete id="deleteByDateAndFactory" > |
| | | delete from aps_gas_pipeline_capacity_plan |
| | | where year = #{year} |
| | | and month = #{month} |
| | | and org_code = #{factory} |
| | | and major = #{major} |
| | | </delete> |
| | | </mapper> |
| | |
| | | package com.aps.job.service.impl; |
| | | |
| | | import cn.hutool.core.collection.ListUtil; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson2.JSONArray; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | |
| | | deleteAllApsWeldSeamStandardJob(); |
| | | |
| | | // æ¹éæå
¥æ°æ°æ® |
| | | batchInsertApsWeldSeamStandardJob(jobList); |
| | | List<List<ApsWeldSeamStandardJob>> dataGroupInterface = ListUtil.split(jobList, 1000); |
| | | for (List<ApsWeldSeamStandardJob> data : dataGroupInterface) { |
| | | batchInsertApsWeldSeamStandardJob(data); |
| | | } |
| | | |
| | | // åæ¥æ°æ®å°ä¸å¡è¡¨ |
| | | syncToBizTable(jobList); |
| | | |
| | | List<List<ApsWeldSeamStandardJob>> dataGroup = ListUtil.split(jobList, 1000); |
| | | for (List<ApsWeldSeamStandardJob> data : dataGroup) { |
| | | syncToBizTable(data); |
| | | } |
| | | return true; |
| | | } catch (Exception e) { |
| | | log.error("åæ¥ç©ææ åçç¼æ°æ®å¼å¸¸", e); |