同步设置新增状态

master
郑明梁 2 years ago
parent e5cb4011ee
commit 15292b4670

@ -15,7 +15,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.WordUtils;
import org.apache.commons.lang3.text.WordUtils;
import org.apache.tools.ant.util.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -205,7 +205,7 @@ public class IdcServiceImpl implements IdcService {
map.put("messageType", tnames[9]);
map.put("messageName", tnames[9]);
ScheduledRequest scheduledRequest = new ScheduledRequest();
scheduledRequest.setCronName("sync"+WordUtils.capitalizeFully(tnames[2], new char[]{'_'}).replace("_", ""));
scheduledRequest.setCronName("sync"+ WordUtils.capitalizeFully(tnames[2], new char[]{'_'}).replace("_", ""));
ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest);
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "";

@ -18,14 +18,14 @@
<insert id="inserts" parameterType="com.glxp.api.entity.sync.SyncDataBustypeEntity">
insert INTO sync_data_bustypes
( `action`, `name`, outChange)
( `action`, `name`, outChange,orderStatus)
values
<foreach collection="syncDataBustypeEntities" item="item" index="index"
separator=",">
(
#{item.action}, #{item.name},
#{item.outChange})
#{item.outChange},#{item.orderStatus})
</foreach>
</insert>

Loading…
Cancel
Save