| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.client.RestTemplate; |
| | | import com.java110.core.context.SecureInvocation; |
| | | import com.java110.dto.businessDatabus.BusinessDatabusDto; |
| | | import com.java110.dto.businessTableHis.BusinessTableHisDto; |
| | | import com.java110.dto.order.OrderDto; |
| | |
| | | } |
| | | List<BusinessDatabusDto> databusDtos = DatabusCache.getDatabuss(); |
| | | |
| | | if (!hasTypeCd(databusDtos, businesses)) { |
| | | if (!hasTypeCd(databusDtos, businesses) || !SecureInvocation.secure(this.getClass())) { |
| | | return ; |
| | | } |
| | | |
| | |
| | | params = generateBusinessInsertInsertSql(orderItemDto, businessTableHisDto); |
| | | break; |
| | | case "MOD": |
| | | params = generateBusinessDelInsertSql(orderItemDto, businessTableHisDto); |
| | | params = new JSONArray(); |
| | | JSONArray paramDels = generateBusinessDelInsertSql(orderItemDto, businessTableHisDto); |
| | | for(int delIndex = 0 ; delIndex < paramDels.size(); delIndex ++){ |
| | | params.add(paramDels.getJSONObject(delIndex)); |
| | | } |
| | | JSONArray paramAdds = generateBusinessInsertInsertSql(orderItemDto, businessTableHisDto); |
| | | params.add(paramAdds); |
| | | for(int addIndex = 0 ; addIndex < paramAdds.size(); addIndex ++){ |
| | | params.add(paramAdds.getJSONObject(addIndex)); |
| | | } |
| | | break; |
| | | case "DEL": |
| | | params = generateBusinessDelInsertSql(orderItemDto, businessTableHisDto); |